Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7190

catch(...) is not catching an exception, my program is still crashing

$
0
0

I'm having a problem with a tester that my application crashes in initialization. I added more logging and exception handling but it still crashes with the generic "this program has stopped working" message rather than triggering my error handling.

Given my main() looks like this and has catch(...) under what circumstances would this not be triggered?

try{    simed::CArmApp app(0, cmd);    for(bool done = false;!done;)     {        done = !app.frame();    }} catch(const std::runtime_error &e){    handleApplicationError(e.what());    return -1;} catch(...) {    handleApplicationError("Unknown Error");    return -999;}

My code is calling into a library doing OpenGL rendering which is where I believe things are going wrong.


Viewing all articles
Browse latest Browse all 7190

Trending Articles