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,6 +394,8 @@ int wxEntryReal(int& argc, wxChar **argv)
WX_SUPPRESS_UNUSED_WARN(cleanupOnExit);
wxTRY
{
// app initialization
if ( !wxTheApp->CallOnInit() )
{
@ -407,6 +410,8 @@ int wxEntryReal(int& argc, wxChar **argv)
wxTheApp->OnExit();
return retValue;
}
wxCATCH_ALL( wxTheApp->OnUnhandledException(); return -1; )
}
// wrap real wxEntry in a try-except block to be able to call