ADXForm and Exceptions

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

ADXForm and Exceptions
 
This forum has moved to a new location. From now on, please post all your questions about Add-in Express Regions on .NET and VSTO forum.
Daniel Ranft




Posts: 14
Joined: 2012-09-13
If there is an unhandled exception, ADX shows a nice exception window with a lot of information. This is quite good for us developers, but why is this dialog visible for the enduser in a release build?
Can i disable the exception dialog in release builds?
Posted 21 Sep, 2012 02:17:07 Top
Eugene Astafiev


Guest


Hi Daniel,

Please take a look at the http://www.add-in-express.com/forum/read.php?FID=5&TID=11041. You need to handle the OnError event of the add-in module class for suppressing exception windows:

private void AddinModule_OnError(ADXErrorEventArgs e) 
{ 
    e.Handled = true; 
}
Posted 21 Sep, 2012 03:03:40 Top
Daniel Ranft




Posts: 14
Joined: 2012-09-13
I'm not able to handle it. I have "Ribbons for Outlook and VSTO", so i don't have the needed dll.
Is there an other way to supress the dialog?
Posted 21 Sep, 2012 03:20:07 Top
Eugene Astafiev


Guest


Hi Daniel,

There is no such product on the shelf. May be you mean http://www.add-in-express.com/outlook-regions/index.php?

Please see the following stub code in the FormsManager(.cs) file:

private void FormsManager_OnError(object sender, AddinExpress.OL.ErrorEventArgs args)
{
        
}


Is it what you are looking for?
Posted 21 Sep, 2012 04:26:01 Top
Daniel Ranft




Posts: 14
Joined: 2012-09-13
Yes i meant Regions and not Ribbons :)
Thanks, that helped a lot
Posted 21 Sep, 2012 04:42:09 Top