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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top