views:

107

answers:

1

When unhandled exception is handled in wxWidgets application in Windows, program shows Abort-Retry-Ignore message produced by Widgets exception handler. I want to get normal unhandled exception behavior: program should terminate with standard Windows unhandled exception dialog. Can I prevent Widgets to catch unhanled exceptions?

+1  A: 

Override wxApp::OnUnhandledException() and simply call throw there.

VZ
Tried OnUnhandledException and OnExceptionInMainLoop, both attempts doesn't give desired behavior. OnUnhandledException is called only after Widgets exception doalog is shown. Throwing from OnExceptionInMainLoop just terminates the program without exception. In both cases, original exception context is lost.
Alex Farber