This is part of a workstation application that monitors a user's Outlook Mailbox. It is intended to operate regardless of whether Outlook is running or not. When Outlook is running on the workstation, the app runs OK without errors. If Outlook is not running the app has to instantiate its own Outlook object and also runs OK. However if the user stops Outlook while the app is running, the app then has to instantiate a new Outlook object and on the SECOND poll after stopping Outlook, an exception message 'Unspecified Error' is returned. Could you let me know what this could mean please.
Dim oApp As Outlook.Application
Dim objSecurityManager As AddinExpress.Outlook.SecurityManager '
'Check if Outlook Windows app is running
If OutlookWindowPresent() Then
oApp = Marshal.GetActiveObject("Outlook.Application")
oApp = New Outlook.Application
objSecurityManager = New AddinExpress.Outlook.SecurityManager
'Connect 'Outlook Security Manager' to oApp
'Turn Security OFF
objSecurityManager.DisableOOMWarnings = True
Catch Ex As Exception
Thanks for any assistance
Add-in Express team
Do you call the Quit method of Outlook application?
Also I would advice you to call the Dispose method of SecurityManager component.
Do you use the latest version of Outlook Security Manager (v.1.4)?