]> git.cworth.org Git - apitrace/blobdiff - common/os_win32.cpp
Add comment about SetUnhandledExceptionFilter
[apitrace] / common / os_win32.cpp
index c6773925bc1eff67ac2b8eafee2ec1058396d3bc..654db16769e8f5cfdc533272773bff9ce88d0ea3 100644 (file)
@@ -161,6 +161,12 @@ SetExceptionCallback(void (*callback)(void))
         gCallback = callback;
 
         assert(!prevExceptionFilter);
+
+        /*
+         * TODO: Unfortunately it seems that the CRT will reset the exception
+         * handler in certain circumnstances.  See
+         * http://www.codeproject.com/KB/winsdk/crash_hook.aspx
+         */
         prevExceptionFilter = SetUnhandledExceptionFilter(UnhandledExceptionFilter);
     }
 }