Unhandled exceptions in domain

May 14, 2012 at 2:53 PM

Hi,

 

How should I catch all unhandled excepions in Excel Add-in that us based on NetOffice? the AppDomain.UnhandledExcepion event is never fired.

 

Please, help

Alex

Coordinator
May 15, 2012 at 9:19 PM

hey alex,

i do some test and its true, the UnhandledException Event was never called in addin solutions.
i need few days to clearify the situation and checkout what can i do to fix this issue.

Sebastian

Coordinator
May 18, 2012 at 12:43 AM

okay, the problem is by design. the CLR AppDomain Exception Handling doesnt works with unmanaged threads. i create a new VS Wizard at the moment with COM Shimming support. Shimming make it possible to handle this problem. I need ~1 month for this feature(not easy). If you need a solution right now then use the COM Shim Wizard from Microsoft. an example is available in the download section. if you have questions about the Shim wizard an NetOffice then please contact me again :-)

Sebastian