Results 1 to 2 of 2

Thread: program crashes (QtTestRunner)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Posts
    26
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default program crashes (QtTestRunner)

    i have a QtTestRunner from where i run some code, a object, which reads from an xml file
    [the object.read(.... )

    using the libxml2 library when i run the test a second time it crashes my application....and it

    stops at this line :
    Qt Code:
    1. reader = xmlReaderForFile(filename.c_str(), NULL, 1);
    To copy to clipboard, switch view to plain text mode 

    but when i use the object to read from the xml file and i use it from an executable project so not Qt it works fine .... even if i put the read operations in a loop
    Qt Code:
    1. for(int i=0;i<10;i++) TheObject.read(...) ;
    To copy to clipboard, switch view to plain text mode 

    Code from inside the object:
    Qt Code:
    1. ....
    2. xmlTextReaderPtr reader=0;
    3. reader = xmlReaderForFile(filename.c_str(), NULL, 1);
    4. ....
    To copy to clipboard, switch view to plain text mode 
    Last edited by jpn; 11th December 2008 at 17:28. Reason: missing [code] tags

Similar Threads

  1. wrong connection? program crashes altough it compiles
    By cbarmpar in forum Qt Programming
    Replies: 7
    Last Post: 30th September 2008, 12:48
  2. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 19:56
  3. Program crashes (SIGSEGV)
    By Voldemort in forum Qt Programming
    Replies: 47
    Last Post: 21st May 2007, 20:09
  4. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19
  5. Reading from TCP Socket crashes program
    By OnionRingOfDoom in forum Qt Programming
    Replies: 26
    Last Post: 27th January 2006, 19:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.