I have an ugly problem and would appreciate any help !! My program crashes out of the window at any time when an exception occurs, for example:
try { throw QString("lala"); } catch(QString &s) { ... }
Im using Qt 4.8.1 with MinGW in QtCreator. I found a lot of discussion and tried
- source recovery with -exceptions
- adding QMAKE_CXXFLAGS + = -fexceptions
but no change. Windows tells me that the program crashed at the point where I selected the error. On Linux, everything works fine.
Not wanting to discuss the pros and cons of using exceptions in general, I wonder if there is a problem with Qt or MinGW and what I can do to get rid of the problem.
source share