From: Vadim Zeitlin <vadim@wxwidgets.org> Date: Sun, 13 Jul 2003 21:29:37 +0000 (+0000) Subject: moved SEH stuff to crashrpt.cpp X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8531cc2589161b92c1d8b607b0c13e4d1c8b6844 moved SEH stuff to crashrpt.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index 2ce7da1956..ca408de0a6 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -90,14 +90,6 @@ #endif #endif -// ---------------------------------------------------------------------------- -// module globals -// ---------------------------------------------------------------------------- - -#if wxUSE_ON_FATAL_EXCEPTION - static bool gs_handleExceptions = FALSE; -#endif - // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- @@ -1211,40 +1203,3 @@ extern long wxCharsetToCodepage(const wxChar *name) #endif // wxUSE_FONTMAP/!wxUSE_FONTMAP -// ---------------------------------------------------------------------------- -// wxApp::OnFatalException() support -// ---------------------------------------------------------------------------- - -bool wxHandleFatalExceptions(bool doit) -{ -#if wxUSE_ON_FATAL_EXCEPTION - // assume this can only be called from the main thread - gs_handleExceptions = doit; - - return TRUE; -#else - wxFAIL_MSG(_T("set wxUSE_ON_FATAL_EXCEPTION to 1 to use this function")); - - (void)doit; - return FALSE; -#endif -} - -#if wxUSE_ON_FATAL_EXCEPTION - -extern unsigned long wxGlobalSEHandler() -{ - if ( gs_handleExceptions && wxTheApp ) - { - // give the user a chance to do something special about this - wxTheApp->OnFatalException(); - - // this will execute our handler and terminate the process - return EXCEPTION_EXECUTE_HANDLER; - } - - return EXCEPTION_CONTINUE_SEARCH; -} - -#endif // wxUSE_ON_FATAL_EXCEPTION -