Outlook Addin won't allow Outlook to Exit properly 
Author Message
 Outlook Addin won't allow Outlook to Exit properly

I have a simple addin created with VB6 and the addin.dsr. Module level
variables seem to prevent Outlook from closing (I do not get disconnect or
shutdown events) and Outlook stays resident.

Any pointers would be appreciated...

Private oChangeMonitor As ChangeMonitor '(a class in the current project
that monitors the Explorer)
Private oApp As Outlook.Application

Private Sub AddinInstance_Initialize()
    Debug.Print "AddinInstance_Initialize"

End Sub

Private Sub AddinInstance_OnAddInsUpdate(custom() As Variant)
    Debug.Print "AddinInstance_OnAddInsUpdate"

End Sub

Private Sub AddinInstance_OnBeginShutdown(custom() As Variant)
    Debug.Print "AddinInstance_OnBeginShutdown"

'Won't execute if oChangeMonitor  or oApp is not Nothing
End Sub

Private Sub AddinInstance_OnConnection(ByVal Application As Object, ByVal
ConnectMode As AddInDesignerObjects.ext_ConnectMode, ByVal AddInInst As
Object, custom() As Variant)
    Set oApp = Application

End Sub

Private Sub AddinInstance_OnDisconnection(ByVal RemoveMode As
AddInDesignerObjects.ext_DisconnectMode, custom() As Variant)
    Set oChangeMonitor = Nothing
'Won't execute if oChangeMonitor  or oApp is not Nothing
End Sub

Private Sub AddinInstance_OnStartupComplete(custom() As Variant)
    Set oChangeMonitor = New ChangeMonitor
    Set oChangeMonitor.Explorer = oApp.ActiveExplorer
    Set oApp = Nothing

End Sub

Private Sub AddinInstance_Terminate()
    Debug.Print "AddinInstance_Terminate"

End Sub



Wed, 16 Feb 2005 00:59:43 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Outlook COM Add In problem: Outlook wouldn't exit from Process in Task Manager

2. vb2003 outlook addin hangs on exit

3. Outlook Addin - some programmer's goofups - Please help

4. Outlook doesn't properly start on external activation

5. Exiting Outlook doesn't close COM AddIns...

6. outlook 2000 won't send/receive

7. MS Outlook won't work

8. Outlook won't start from VB NT Service

9. Strage situation when Outlook won't quit

10. Why Won't Outlook send meassages in the background

11. Outlook won't automate on Terminal Server

12. Outlook 2K - macros won't work unless VBA environment is opened

 

 
Powered by phpBB® Forum Software