- // by default, call wxApp::OnExceptionInMainLoop if an exception occurs
- try
- {
- handler->DoHandleEvent(func, event);
- }
- catch ( ... )
- {
- if ( !wxConstCast(this, wxAppBase)->OnExceptionInMainLoop() )
- {
- wxEventLoop *loop = wxEventLoop::GetActive();
- if ( loop )
- loop->Exit(-1);
- }
- //else: continue running the event loop
- }
+ throw;
+
+ // some compilers are too stupid to know that we never return after throw
+#if defined(__DMC__) || (defined(_MSC_VER) && _MSC_VER < 1200)
+ return false;
+#endif