Thread View: borland.public.cppbuilder.nativeapi
1 messages
1 total messages
Started by Adriano Coser
Fri, 22 Aug 2008 11:28
Unable to display MessageBox after exception
Author: Adriano Coser
Date: Fri, 22 Aug 2008 11:28
Date: Fri, 22 Aug 2008 11:28
21 lines
1756 bytes
1756 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads