Hello,
I have a following problem.
Development environment Windows XP, VS 2008, Outlook 2003.
Deployment environment Small bussiness server, Outlook 2000.
I have created a small VB .Net program which forwards emails using Outlook application. This program is called from MS-SQL every 2 min.
At the end of the program I close all the resources, but Outlook.exe process is still displayed in the Task manager.
Here is the code I use for closing the Outlook.
OlApp = CreateObject("O utlook.Applicat ion")
myNS = OlApp.GetNamesp ace("MAPI")
myNS.Logon()
...
myNS.Logoff()
OlApp.Quit()
Marshal.Release ComObject(OlApp )
GC.Collect()
GC.WaitForPendi ngFinalizers()
GC.Collect()
Since I do not have Microsoft.Offic e.Interop.Outlo ok.dll for Outlook 2000 I use one generated by VS 2008 for Outlook 2003. If this is a problem, than I don't understand why everything (forwarding mails) works OK but closing the Outlook.
Thanks.
I have a following problem.
Development environment Windows XP, VS 2008, Outlook 2003.
Deployment environment Small bussiness server, Outlook 2000.
I have created a small VB .Net program which forwards emails using Outlook application. This program is called from MS-SQL every 2 min.
At the end of the program I close all the resources, but Outlook.exe process is still displayed in the Task manager.
Here is the code I use for closing the Outlook.
OlApp = CreateObject("O utlook.Applicat ion")
myNS = OlApp.GetNamesp ace("MAPI")
myNS.Logon()
...
myNS.Logoff()
OlApp.Quit()
Marshal.Release ComObject(OlApp )
GC.Collect()
GC.WaitForPendi ngFinalizers()
GC.Collect()
Since I do not have Microsoft.Offic e.Interop.Outlo ok.dll for Outlook 2000 I use one generated by VS 2008 for Outlook 2003. If this is a problem, than I don't understand why everything (forwarding mails) works OK but closing the Outlook.
Thanks.
Comment