]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
Patch from Andre Reitz to correct a couple of bugs
[wxWidgets.git] / src / common / appbase.cpp
index d9f65368b675cc641d8c3ca7ad93d6c9fef24714..c0af2ac2564d6427b09314cf8aef2401184eaf22 100644 (file)
     #endif // wxUSE_STACKWALKER
 #endif // __WXDEBUG__
 
+// wxABI_VERSION can be defined when compiling applications but it should be
+// left undefined when compiling the library itself, it is then set to its
+// default value in version.h
+#if wxABI_VERSION != wxMAJOR_VERSION * 10000 + wxMINOR_VERSION * 100 + 99
+#error "wxABI_VERSION should not be defined when compiling the library"
+#endif
+
 // ----------------------------------------------------------------------------
 // private functions prototypes
 // ----------------------------------------------------------------------------
@@ -316,15 +323,8 @@ wxAppConsole::HandleEvent(wxEvtHandler *handler,
                           wxEventFunction func,
                           wxEvent& event) const
 {
-    // by default, call wxApp::OnExceptionInMainLoop if an exception occurs
-    try
-    {
-        handler->DoHandleEvent(func, event);
-    }
-    catch ( ... )
-    {
-        wxConstCast(this, wxAppConsole)->OnExceptionInMainLoop();
-    }
+    // by default, simply call the handler
+    (handler->*func)(event);
 }
 
 bool