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