Custom exception handler not executed

delphi package - automated exception handling

Custom exception handler not executed

Postby dnote » Mon Jul 12, 2004 11:07 am

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

Postby madshi » Mon Jul 12, 2004 2:54 pm

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

Postby dnote » Tue Jul 13, 2004 10:22 am

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

Postby madshi » Tue Jul 13, 2004 11:04 am

Well then CreateBugReport is what you need. But it doesn't involve calling the exception handlers.
madshi
Site Admin
 
Posts: 10200
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 12 guests

cron