From: José Fonseca Date: Tue, 11 Oct 2011 19:29:02 +0000 (+0100) Subject: Add comment about SetUnhandledExceptionFilter X-Git-Tag: 2.0_alpha^2~577 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71f48cf83271636cdae2e223d2b795b6e7491347;p=tools%2Fapitrace.git Add comment about SetUnhandledExceptionFilter --- diff --git a/common/os_win32.cpp b/common/os_win32.cpp index c677392..654db16 100644 --- a/common/os_win32.cpp +++ b/common/os_win32.cpp @@ -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); } }