Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Add-In - Outlook.exe Persisting in Task Manager after closing

Status
Not open for further replies.

NipsMG

Programmer
Dec 27, 2000
215
US
Hey everyone.

I've been writing an Outlook add-in that uses a usercontrol and outlook propertypages to add a tab to the outlook Tools -> Options menu. I'm having a problem.

Whenever I close outlook, I look in the task manager and Outlook.exe is still running. I've looked through my add-in code and I've destroyed all objects holding an instance of outlook or any of it's objects (Namespaces, Explorers, Application Objects, etc have all been killed)

i.e.
Code:
set oNS = Nothing
set oExplorer = Nothing
set oOutlook = Nothing

This happens when choosing "Exit" AND "Exit and Log Off".

Anyone have any ideas as to why this would be happening?

Thanks in advance...

--NipsMG s-)
 
Apologies for the post.. I figured out my own problem.

I was incorrect in figuring that just because the OutlookExplorer_Close() event fired that the OutlookExplorer object would automatically be destroyed.


Setting OutlookExplorer = Nothing in the Close() event killed it and now the Outlook Instance finally closes after closing the active Outlook window.

s-)

--NipsMG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top