You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/25 18:15:24 UTC

svn commit: r818906 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c

Author: mturk
Date: Fri Sep 25 16:15:23 2009
New Revision: 818906

URL: http://svn.apache.org/viewvc?rev=818906&view=rev
Log:
Ignore exceptions on process exit

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c?rev=818906&r1=818905&r2=818906&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c Fri Sep 25 16:15:23 2009
@@ -153,7 +153,13 @@
                 TlsFree(dll_tls_index);
             }
             dll_tls_index = TLS_OUT_OF_INDEXES;
-            acr_dll_exit();
+            __try {
+                acr_dll_exit();
+            }
+            __except(EXCEPTION_EXECUTE_HANDLER) {
+                /* Don't crash on process exit
+                 */
+            }
             dll_instance = NULL;
         break;
         default: