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 :
reader = xmlReaderForFile(filename.c_str(), NULL, 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
for(int i=0;i<10;i++) TheObject.read(...) ;
for(int i=0;i<10;i++) TheObject.read(...) ;
To copy to clipboard, switch view to plain text mode
Code from inside the object:
....
xmlTextReaderPtr reader=0;
reader = xmlReaderForFile(filename.c_str(), NULL, 1);
....
....
xmlTextReaderPtr reader=0;
reader = xmlReaderForFile(filename.c_str(), NULL, 1);
....
To copy to clipboard, switch view to plain text mode
Bookmarks