automation dispose problem in .net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
Back
Top