Custom exception handler not executed

delphi package - automated exception handling
Post Reply
dnote
Posts: 17
Joined: Fri May 07, 2004 8:02 am

Custom exception handler not executed

Post 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!
madshi
Site Admin
Posts: 10328
Joined: Sun Mar 21, 2004 5:25 pm

Post 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".
dnote
Posts: 17
Joined: Fri May 07, 2004 8:02 am

Post 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.
madshi
Site Admin
Posts: 10328
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Well then CreateBugReport is what you need. But it doesn't involve calling the exception handlers.
Post Reply