Unable to display MessageBox after exception

1 view
Skip to first unread message

Adriano Coser

unread,
Aug 25, 2008, 10:25:00 AM8/25/08
to
Hello,

I've set a callback function with SetUnhandledExceptionFilter.


When an exception occours my function is called, but the MessageBox I
want to display doesn't show up under certain circunstances (when a
"division by zero" exception occours, for example). The program
simply
terminates when calling MessageBox.


long __stdcall FinalExceptionHandler(
PEXCEPTION_POINTERS ExceptionInfo
)
{
MessageBox(0, "My message", "My message", MB_OK);
return EXCEPTION_EXECUTE_HANDLER;

}


Thanks in advance for any help.

Regards,
Adriano


Reply all
Reply to author
Forward
0 new messages