From: Vadim Zeitlin Date: Thu, 17 Jul 2003 21:03:48 +0000 (+0000) Subject: ignore exceptions during the execution of the exception handler to avoid infinite... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3f1d37565401241265402d55130ddf250ccd50b9 ignore exceptions during the execution of the exception handler to avoid infinite loop git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/crashrpt.cpp b/src/msw/crashrpt.cpp index 7098089b5e..9871cc0c41 100644 --- a/src/msw/crashrpt.cpp +++ b/src/msw/crashrpt.cpp @@ -1132,7 +1132,16 @@ extern unsigned long wxGlobalSEHandler(EXCEPTION_POINTERS *pExcPtrs) wxGlobalSEInformation = pExcPtrs; // give the user a chance to do something special about this - wxTheApp->OnFatalException(); + __try + { + wxTheApp->OnFatalException(); + } + __except ( EXCEPTION_EXECUTE_HANDLER ) + { + // nothing to do here, just ignore the exception inside the + // exception handler + ; + } wxGlobalSEInformation = NULL;