Try this:

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

----- Original Message -----
From: "Howard Bartfield" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 9:42 AM
Subject: Re: [DOTNET] strange behaviour with Garbage Collector


> i'm not convinced it's to do with 2 GCs, because the following
> doesn't work either:
>
> Excel.ApplicationClass appClass =  new Excel.ApplicationClass();
> appClass = null;
> GC.Collect();
> GC.Collect();

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