Detecting MadExcept

delphi package - automated exception handling
Post Reply
Cabmaster
Posts: 2
Joined: Wed Mar 09, 2005 10:57 am

Detecting MadExcept

Post by Cabmaster »

Hello

We build the same project executables, sometimes with MadExcept, sometimes without depending on the customer and I was wondering if there was an easy way to determine (in code) whether Madexcept was enabled?

Less likely but I may as well ask - is there a way to send AutoMailBugReport without the sucess/fail box appearing at all?

Thanks
Cabmaster
Posts: 2
Joined: Wed Mar 09, 2005 10:57 am

answering my own question

Post by Cabmaster »

OK Think I found it!

Using HandleExceptions_ to detect mad except and AutoMailBugReport rather than MailBugReport to send the email!

Duh!
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: answering my own question

Post by madshi »

Yes, you can do it like that.

You can also use the conditional define {$ifdef madExcept}, if you find it useful. It's automatically defined if madExcept is enabled and it's undefined, if madExcept is disabled.
Post Reply