Re: General C++ exception not working with QT Necessitas

Originally Posted by
d_stranz
I have also had trouble catching sigsegv (segmentation fault) exceptions (in Windows with Qt); the debugger reports something about exception handling via try/catch being incompatible with the signal / slot mechanism. As you are probably seeing, the catch clause is ignored even though the exception appears to be thrown, and the program crashes. In your case, simply replacing the try/catch with a conditional and a message box in case of error would solve your problem.
sigsev is not an exception that is thrown. It is your program going POP! You cant catch/recover from segfault.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks