Exceptions cause crash (Qt SDK 1.2.1 - Qt4.8.1, MinGW, windows)



  • Hi,

    I have an ugly problem and would appreciate any help!! My program crashes on windows any time there an exception is thrown, e.g.:
    @ try
    {
    throw QString("lala");
    }
    catch(QString &s)
    {
    ...
    }
    @

    I'm using Qt 4.8.1 with MinGW in the QtCreator. I found quite a few discussions and tried

    • rebuilding the source code with -exceptions
    • adding QMAKE_CXXFLAGS += -fexceptions

    but no change. Windows tells me that the program crashed at the point where I throw the error. Under Linux everything works fine.

    Without wanting to discuss the pros and cons of using exceptions at all, I wonder if it's a problem with Qt or MinGW and what I can do to get rid of the problem.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.