From 3f1d37565401241265402d55130ddf250ccd50b9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 17 Jul 2003 21:03:48 +0000 Subject: [PATCH] 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 --- src/msw/crashrpt.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; -- 2.50.0