automation dispose problem in .net

P

ppp01

Hi,

I automate the outlook by c# and after using the outlook automation,
the program logoff the outlook mapi session, and olApp.Quit();
But I still find the Outlook.exe process still running in the window.
I want to know how to quite the outlook process completely after automation ?

Thanks
 
K

Ken Slovak - [MVP - Outlook]

Make sure to release all your Outlook objects, not in the Quit event, which
is useless. Do it when the last Explorer is closing by handling the
Explorer.Close event.

After that call to release all your COM objects and then explicitly call the
garbage collector.
 
Top