Problem Closing Outlook 2000 with Add-In

M

Martin

Hello, I am developening an Add-In from Outlook 2000 with Visual Basic .NET and I have a problem when I try to close the applicattion.
To create the button, I create a new Project with Wizard.
It seams to be a problem with the Object Explorer (Or Inspector) that never calls the event Close so, Outlook keeps running in memory all the time.
I found a particular way to Outlook close, but It requires a User interaction and I don't want it:
Private Sub oExplorer_Close() Handles oExplorer.Close
oExplorer = Nothing
GC.Collect()
MsgBox("Closing", MsgBoxStyle.ApplicationModal, "Close")
GC.Collect()
End Sub
Does anyone have this problem when you try to put an Add-In in Outlook 2000?
 
M

Matt Jacobs

Martin said:
Hello, I am developening an Add-In from Outlook 2000 with Visual Basic .NET and I have a problem when I try to close the applicattion.
To create the button, I create a new Project with Wizard.
It seams to be a problem with the Object Explorer (Or Inspector) that never calls the event Close so, Outlook keeps running in memory all the time.
I found a particular way to Outlook close, but It requires a User interaction and I don't want it:
Private Sub oExplorer_Close() Handles oExplorer.Close
oExplorer = Nothing
GC.Collect()
MsgBox("Closing", MsgBoxStyle.ApplicationModal, "Close")
GC.Collect()
End Sub
Does anyone have this problem when you try to put an Add-In in Outlook 2000?

This might help
http://www.microeye.com/resources/res_addinmon.htm
 

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

Top