rolled back exceptions handling patch, it relied on incorrect assumption about vtables

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2005-06-21 09:56:18 +00:00
parent 87b72f94f3
commit 96d38c7e0d
7 changed files with 62 additions and 102 deletions

View File

@@ -316,15 +316,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