]> git.saurik.com Git - wxWidgets.git/commitdiff
ignore exceptions during the execution of the exception handler to avoid infinite...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 17 Jul 2003 21:03:48 +0000 (21:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 17 Jul 2003 21:03:48 +0000 (21:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/crashrpt.cpp

index 7098089b5e8097f66b8ff84e4251e499eaa196e6..9871cc0c4193018beba147976b89c7b43bca71fe 100644 (file)
@@ -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;