Hi, I'm in a bit of a conundrum: using QSettings results in a crash under Windows XP, MinGW, Qt 4.7.
Code:
#include <QtCore/QCoreApplication> #include <QtCore/QSettings> int main(int argc, char *argv[]) { s.setValue("test", "value"); return a.exec(); }
This simple app throws an exception at line 9, ultimately pointing to some code in qsettings.cpp:
Code:
if (SHGetSpecialFolderPath) { wchar_t path[MAX_PATH]; SHGetSpecialFolderPath(0, path, type, FALSE); }
At other times, creating a pointer to a QSettings object in the header file and later initializing it results in the same exception:
This doesn't happen on Windows, and the app runs fine when I don't use a debugger. I found a reported bug on http://bugreports.qt.nokia.com/brows...s:all-tabpanel but it doesn't seem to be verified.
