F
Frank Rizzo
I've seen code that in addition to calling
System.Runtime.InteropServices.Marshal.ReleaseComObject on all the
allocated COM objects also call GC.Collect. Do I need to do that, or is
it overkill? This is in a Console Application situation.
Example:
oXL.Quit();
System.Runtime.InteropServices.Marshal.ReleaseComObject (oXL);
oXL = null;
GC.Collect(); //do I need this too?
System.Runtime.InteropServices.Marshal.ReleaseComObject on all the
allocated COM objects also call GC.Collect. Do I need to do that, or is
it overkill? This is in a Console Application situation.
Example:
oXL.Quit();
System.Runtime.InteropServices.Marshal.ReleaseComObject (oXL);
oXL = null;
GC.Collect(); //do I need this too?