Constructing QFile object:
"file.ext" is present in working directory. Calling file.open(QFile::ReadOnly | QFile::Text) terminates application with error:
The same happens if I try to open embedded resource file.terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
It can't be the lack of memory because I have 2 of 4 GB of RAM free, neither the lack of available file handles to acquire, since Windows imposes no limitations on this.
Any help would be greatly appreciated.
P.S. The code that tries to open the file is loaded and executed from shared library, but I highly doubt that it can be the case.
P.P.S. Qt 4.6, Windows XP SP3
Bookmarks