R
Rasmus Wätjen
Hi All.
I am creating an application which accesses information in Outlook.
I use the functions
Set olApp = CreateObject("Outlook.Application") and Set olNS =
olApp.getNameSpace("MAPI")
to create the connection to Outlook.
I also do
olApp = Nothing and olNS = Nothing
when I am done. This is all documented multiple times on MSDN.
However, if the user has Outlook open at the same time as my application,
and he closes my application first, and then Outlook, there is still an
instance of OUTLOOK.EXE running (WinXP), and the user can not open Outlook
again. It immediately shows a message box saying "Operation failed".
Is there something that I am missing?
Thanks in advance for any hints.
/Rasmus
I am creating an application which accesses information in Outlook.
I use the functions
Set olApp = CreateObject("Outlook.Application") and Set olNS =
olApp.getNameSpace("MAPI")
to create the connection to Outlook.
I also do
olApp = Nothing and olNS = Nothing
when I am done. This is all documented multiple times on MSDN.
However, if the user has Outlook open at the same time as my application,
and he closes my application first, and then Outlook, there is still an
instance of OUTLOOK.EXE running (WinXP), and the user can not open Outlook
again. It immediately shows a message box saying "Operation failed".
Is there something that I am missing?
Thanks in advance for any hints.
/Rasmus