
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
This is in regards to the Unhandled Exception event on .Net Desktop Applications.
Currently, the desktop application I have developed can be used stand-alone and is accessible through Navisworks using a CommandPlugin. I utilize the Unhandled Exception Event to catch all unhandled exceptions, based on the severity of the exception, it will be handled by my application. This way I can centralize my error handling avoiding repeating code.
The issue is that when someone accesses the application through Navisworks, Navisworks gets first dibs on the Unhandled Exception event and pops up a generic dialog, then closes the application before it is handled by my application. I know that event handling is on a first come first serve basis, so my options are to hope that the Navisworks API has something that I can utilize to avoid the application closing or to abandon the Unhandled Exception Event and have try/catch blocks on all functions that reference an error handling service.
I have tried every variation of phrases in google I could think of to find answers to the following questions with no luck, so I am asking these here:
- Is it possible to deregister Navisworks unhandled exception event handler?
- Is there anything in the Navisworks API to stop Navisworks from closing the application on exception?
Thank you
Solved! Go to Solution.