I agree with your thoughts but What i am asking is some COM exceptions which does not occur every time and it's hard to reproduce For that reason I want something which can handle the exception on the application level. Please share your thoughts
Handling unhandled Exception in vsto
Hi All,
How can I handle unhandled exceptions for vsto add in .I want to handle this as my word is crashing if there are unhandled exceptions
2 answers
Sort by: Newest
-
-
RLWA32 40,656 Reputation points
2022-11-05T12:59:52.967+00:00 An exception that propagates out of your code is indicative of an error condition. While using try/catch might prevent the host application from terminating immediately the error condition could still result in problems that manifest in subsequent processing.
The takeaway is that you probably have some bugs in your code. You need to debug it to determine the cause of the exception and correct the code that caused it to be thrown, or catch it if it is expected.