If i write
try {
throw std::exception("Exception");
} catch (std::exception& ex) {
qDebug("Game Over");
}
inside my main function (or somewhere else), my Qt application crashes. This effect was described (5 years ago) in Exception Handling Doesn't Work with Qt on Windows .
The original poster apparently solved the problem by reconfiguring and restoring itself in the Qt SDK (obviously favorable -exceptions), but it’s hard for me to believe that all Qt executables come with exceptions turned off and that everyone should do it with an exception.
Can someone point me to the place where this is documented, tell me if this is really at all or what am I doing wrong here?
I am now on Qt 5.4.2 with MSVC2013, Win 7 (downloaded quartet-open-source-Windows-x86-msvc2013_opengl-5.4.2.exe from here ).
source
share