Page 1 of 1

Custom exception handler not executed

Posted: Mon Jul 12, 2004 11:07 am
by dnote
Hi,

I have registered a custom exception handler which work perfectly when an exception occurs. However, if I call CreateBugReport myself, the exception handler is not executed. Is this a bug or is it programmed as such on purpose?

TIA!

Posted: Mon Jul 12, 2004 2:54 pm
by madshi
That behaviour is intended. If you want to start the whole sequence of actions which are usually executed when an exception occurs (including the exception handlers) you need to call "HandleException" instead of "CreateBugReport".

Posted: Tue Jul 13, 2004 10:22 am
by dnote
I guess HandleException doesnt work in case I only want the report and no exception dialog? I'm using the report as a "Detailed Application Info" function for the endusers of my application, so I only need the string, no exception dialog.

Posted: Tue Jul 13, 2004 11:04 am
by madshi
Well then CreateBugReport is what you need. But it doesn't involve calling the exception handlers.