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:
@@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
#include "wx/ptr_scpd.h"
|
#include "wx/ptr_scpd.h"
|
||||||
#include "wx/module.h"
|
#include "wx/module.h"
|
||||||
|
#include "wx/except.h"
|
||||||
|
|
||||||
#if defined(__WXMSW__) && defined(__WXDEBUG__)
|
#if defined(__WXMSW__) && defined(__WXDEBUG__)
|
||||||
#include "wx/msw/msvcrt.h"
|
#include "wx/msw/msvcrt.h"
|
||||||
@@ -393,6 +394,8 @@ int wxEntryReal(int& argc, wxChar **argv)
|
|||||||
|
|
||||||
WX_SUPPRESS_UNUSED_WARN(cleanupOnExit);
|
WX_SUPPRESS_UNUSED_WARN(cleanupOnExit);
|
||||||
|
|
||||||
|
wxTRY
|
||||||
|
{
|
||||||
// app initialization
|
// app initialization
|
||||||
if ( !wxTheApp->CallOnInit() )
|
if ( !wxTheApp->CallOnInit() )
|
||||||
{
|
{
|
||||||
@@ -408,6 +411,8 @@ int wxEntryReal(int& argc, wxChar **argv)
|
|||||||
|
|
||||||
return retValue;
|
return retValue;
|
||||||
}
|
}
|
||||||
|
wxCATCH_ALL( wxTheApp->OnUnhandledException(); return -1; )
|
||||||
|
}
|
||||||
|
|
||||||
// wrap real wxEntry in a try-except block to be able to call
|
// wrap real wxEntry in a try-except block to be able to call
|
||||||
// OnFatalException() if necessary
|
// OnFatalException() if necessary
|
||||||
|
Reference in New Issue
Block a user