call wxApp::OnUnhandledException()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-09-17 23:36:07 +00:00
parent 1c62463166
commit fb3e83b60a

View File

@ -35,6 +35,7 @@
#include "wx/ptr_scpd.h"
#include "wx/module.h"
#include "wx/except.h"
#if defined(__WXMSW__) && defined(__WXDEBUG__)
#include "wx/msw/msvcrt.h"
@ -393,20 +394,24 @@ int wxEntryReal(int& argc, wxChar **argv)
WX_SUPPRESS_UNUSED_WARN(cleanupOnExit);
// app initialization
if ( !wxTheApp->CallOnInit() )
wxTRY
{
// don't call OnExit() if OnInit() failed
return -1;
// app initialization
if ( !wxTheApp->CallOnInit() )
{
// don't call OnExit() if OnInit() failed
return -1;
}
// app execution
int retValue = wxTheApp->OnRun();
// app clean up
wxTheApp->OnExit();
return retValue;
}
// app execution
int retValue = wxTheApp->OnRun();
// app clean up
wxTheApp->OnExit();
return retValue;
wxCATCH_ALL( wxTheApp->OnUnhandledException(); return -1; )
}
// wrap real wxEntry in a try-except block to be able to call