[Interest] Access Violation using QFile and QTextStream
andre at familiesomers.nl
Fri Sep 14 15:00:03 CEST 2012
Op 14-9-2012 14:42, Heidler, Kirstin (GE Oil & Gas) schreef:
> thank you, I also found a different solution. I am not sure why it is working, but it does.
> I simply create the file object as a pointer to the file object like that:
> QFile *file;
> file = new QFile(fileName);
> Thank you for the hint. :)
If you're not sure why this works, then you should really re-read the
answer given by Thomas, as well as your basic C++ book.
My question is: who deletes the QFile instance that you created, and when?
Considder making your QFile instance a member of your parser class instead.
More information about the Interest