outlook "operation failed"

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
 

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