VB.Net Me.Close doesn't close whole add-in?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
Something to run by you guys. I have an add-in built that is launched by a custom toolbutton on a custom ribbon panel. In the form loading event I do some setting of custom iproperties to variables within the program. If any of the iproperties don't exist I have this exception being caught due to the code being in a try - catch statement. If the exception is caught I just display a message box with the error and then call me.close() to close the form/program. Only problem is that it seems like it doesn't close or release everything. Because when I look in the task manager it's still listed as running. If I end the task and then attempt to run the program again (without launching inventor) I will get an "exception thrown @ target invocation" error upon loading. The only way to get the program to run again and work on any file is to close down inventor and relaunch it. Anyway I can fix this from happening? Do I need to set the variable that holds my inventor application to nothing when closing if an exception/error is hit?
If this response answers your question please click "Accept as Solution".