Hello,
I want for my add-in to catch all unhadled exceptions and show them in a message box. This is required as Inventor crashes at all unhandled exception, and it is kind of hard and bad looking to put try{}catch(Exception ex){ } everywhere.
I tried (like in my usual WIndows Forms applications) to put:
System.Windows.Forms.Application.ThreadException += new ThreadExceptionEventHandler(OnThreadException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
but this seems not to have any effect, the exceptions are not being caught.