Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unable to display MessageBox after exception

3 views
Skip to first unread message

Adriano Coser

unread,
Aug 22, 2008, 7:28:25 AM8/22/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

0 new messages