]> git.cworth.org Git - apitrace/blobdiff - common/os_win32.cpp
Ignore .NET exceptions.
[apitrace] / common / os_win32.cpp
index 617928cc080292c0055a4827c8dfd8f5af2293cd..e9306cdc6dfa0168b3bca328d5511b66bb551932 100644 (file)
@@ -275,6 +275,15 @@ unhandledExceptionHandler(PEXCEPTION_POINTERS pExceptionInfo)
         return EXCEPTION_CONTINUE_SEARCH;
     }
 
+    /*
+     * Ignore .NET exception.
+     *
+     * http://ig2600.blogspot.co.uk/2011/01/why-do-i-keep-getting-exception-code.html
+     */
+    if (pExceptionRecord->ExceptionCode == 0xe0434352) {
+        return EXCEPTION_CONTINUE_SEARCH;
+    }
+
     // Clear direction flag
 #ifdef _MSC_VER
 #ifndef _WIN64