does anyone have any ideas on the following:

if I try this:

Excel.ApplicationClass appClass =  new Excel.ApplicationClass();
appClass = null;
GC.Collect();

Excel.exe remains open as a Process in Task Manager.

but if I try this:

Excel.ApplicationClass appClass =  new Excel.ApplicationClass();
appClass = null;
GC.Collect();
Word.ApplicationClass appClass2 =  new Word.ApplicationClass();

Excel.exe closes down immediately. It seems to disappear after I
create a new RCW (i.e. not just the Word.ApplicationClass above).

also, this doesn't just hold for the specific example above - I've
tried it with different COM objects and the same thing happens.


You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to