cleanup after add-in execution
how do i cleanup anything left behind and for all practical purposes kill the process executed by an add-in after it's completed and/or crashes?
i have an add-in w/ a few functions... one of which is to print a set of drawings selected via the common open dialog box. the user also selects a couple options using checkboxes on a form. the first time i ran it everything seemed to run great.
the second time i ran it... the form remembered my previously selection (which tells me i'm not disposing of items as i should) and it didn't run properly.
thx,
eric
you need to post some code.
it sounds to me that you're creating a thread (printing) from a form and closing the form before it's done.
if you are using c++ and are unaware of garbage collection and correct methods to dispose of objects i would highly recommend buying a book on the matter or googling about it as it is very important to clean up after.
if you are using .net i wouldnt worry too much as the gc automatically collects any lost pointers or undisposed objects when the scope is lost in your application. but even so you should stil ideally manage the disposal within your code