Marshal.ReleaseComObject might help.

Signature
Phil Wilson
[Microsoft MVP-Windows Installer]
> I'm sure it's something simple I'm overlooking but... I have a .NET app
> written in C#. I imported a couple of different COM servers via the Add
[quoted text clipped - 31 lines]
> }
> }
Thanks but no, it didn't. Since posting, I tried making my C# class derive
from IDisposable and added the ReleaseComObject call to the Dispose method. I
then call Dispose explicitly on my Driver class. No luck... the server
process still hangs around.
> Marshal.ReleaseComObject might help.
Robin - 19 Oct 2005 17:02 GMT
Apologies - it wasn't an interop problem at all. I needed to call Quit on
Word. Then the process terminates. :-(
> Thanks but no, it didn't. Since posting, I tried making my C# class derive
> from IDisposable and added the ReleaseComObject call to the Dispose method. I
> then call Dispose explicitly on my Driver class. No luck... the server
> process still hangs around.
>
> > Marshal.ReleaseComObject might help.