How to handle exceptions through madshi?

Add-in Express™ Support Service
That's what is more important than anything else

How to handle exceptions through madshi?
Mark Stevens

Posts: 32
Joined: 2014-09-15
I have an Outlook add-in which works fine except that I can't seem to get exceptions to go through madExcept.

I notice that the onError event is always executed in these instances but how do I pass this across to madshi?

Do I have to turn off the exception handling within adx or is there a way to pass any exceptions to madExcept?

I did try Eurekalog with the same level of success but madshi is my preference if it works in this setup.

Posted 07 Apr, 2016 11:33:17 Top
Mark Stevens

Posts: 32
Joined: 2014-09-15
Actually I think I figured it out myself.

I just did this:
procedure TAddInModule.adxCOMAddInModuleError(const E: Exception; var Handled: Boolean);
  Handled := True;

Seems to work ok, although I'm not 100% sure if I should set the "Handled" to True?
Posted 07 Apr, 2016 12:19:26 Top
Andrei Smolin

Add-in Express team

Posts: 14976
Joined: 2006-05-11
Hello Mark,

It's correct. Setting Handled := True prevents Add-in Express from showing an error message.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 08 Apr, 2016 02:42:46 Top