KaNos,
You should make sure that even quitting the application, you set the object to null. That would make the garbage collector do its job.
Besides that, you may have some sort of dialog opening to prevent you to close the window. By then, use the Process.GetProcessesByName method and kill each one of the instances.
Best, -- Regards, Robson Siqueira Enterprise Architect "KaNos" <KaNos[ at ]Isterik.com> wrote in message news:OXGRp8$PHHA.1380[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text] > Hello, > I'm programming an C# application which uses Automation. The problem is > when I quit the application a ghost of excel is always running (Can be > seen in all processes with th task manager). What is the solution ? > Thanks
|