![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
I created a program that opens Outlook and looks for messages in a certain
folder, then closes. I have tried this code to close the application: outLookApp.Session.Logoff(); outLookApp.Quit(); But the OUTLOOK.EXE task is left running. If I re-run the program, a new OUTLOOK.EXE task is started. How do I properly close down Outlook and get the task ended? Any help would be appreciated. Thanks. |
#2
|
|||
|
|||
![]()
Did you tried "Set outLookApp = Nothing"?
-- Peter Marchert [EDV-Service Marchert] Homepage: http://www.marchert.de Excel- und Outlookprogrammierung Dan schrieb: I created a program that opens Outlook and looks for messages in a certain folder, then closes. I have tried this code to close the application: outLookApp.Session.Logoff(); outLookApp.Quit(); But the OUTLOOK.EXE task is left running. If I re-run the program, a new OUTLOOK.EXE task is started. How do I properly close down Outlook and get the task ended? Any help would be appreciated. Thanks. |
#3
|
|||
|
|||
![]()
I'm using C# code, and couldn't find a way to set the app to Nothing.
"Peter Marchert" wrote: Did you tried "Set outLookApp = Nothing"? -- Peter Marchert [EDV-Service Marchert] Homepage: http://www.marchert.de Excel- und Outlookprogrammierung Dan schrieb: I created a program that opens Outlook and looks for messages in a certain folder, then closes. I have tried this code to close the application: outLookApp.Session.Logoff(); outLookApp.Quit(); But the OUTLOOK.EXE task is left running. If I re-run the program, a new OUTLOOK.EXE task is started. How do I properly close down Outlook and get the task ended? Any help would be appreciated. Thanks. |
#4
|
|||
|
|||
![]()
outLookApp = null;
GC.Collect(); Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dan" wrote in message ... I'm using C# code, and couldn't find a way to set the app to Nothing. "Peter Marchert" wrote: Did you tried "Set outLookApp = Nothing"? -- Peter Marchert [EDV-Service Marchert] Homepage: http://www.marchert.de Excel- und Outlookprogrammierung Dan schrieb: I created a program that opens Outlook and looks for messages in a certain folder, then closes. I have tried this code to close the application: outLookApp.Session.Logoff(); outLookApp.Quit(); But the OUTLOOK.EXE task is left running. If I re-run the program, a new OUTLOOK.EXE task is started. How do I properly close down Outlook and get the task ended? Any help would be appreciated. Thanks. |
#5
|
|||
|
|||
![]()
I tried that, but the process is still running.
"Dmitry Streblechenko" wrote: outLookApp = null; GC.Collect(); Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dan" wrote in message ... I'm using C# code, and couldn't find a way to set the app to Nothing. "Peter Marchert" wrote: Did you tried "Set outLookApp = Nothing"? -- Peter Marchert [EDV-Service Marchert] Homepage: http://www.marchert.de Excel- und Outlookprogrammierung Dan schrieb: I created a program that opens Outlook and looks for messages in a certain folder, then closes. I have tried this code to close the application: outLookApp.Session.Logoff(); outLookApp.Quit(); But the OUTLOOK.EXE task is left running. If I re-run the program, a new OUTLOOK.EXE task is started. How do I properly close down Outlook and get the task ended? Any help would be appreciated. Thanks. |
#6
|
|||
|
|||
![]()
Does it work if you let the Window messag epump run for a while (e.g. by
displaying a message box)? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dan" wrote in message ... I tried that, but the process is still running. "Dmitry Streblechenko" wrote: outLookApp = null; GC.Collect(); Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dan" wrote in message ... I'm using C# code, and couldn't find a way to set the app to Nothing. "Peter Marchert" wrote: Did you tried "Set outLookApp = Nothing"? -- Peter Marchert [EDV-Service Marchert] Homepage: http://www.marchert.de Excel- und Outlookprogrammierung Dan schrieb: I created a program that opens Outlook and looks for messages in a certain folder, then closes. I have tried this code to close the application: outLookApp.Session.Logoff(); outLookApp.Quit(); But the OUTLOOK.EXE task is left running. If I re-run the program, a new OUTLOOK.EXE task is started. How do I properly close down Outlook and get the task ended? Any help would be appreciated. Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
is there a way to set an attached task to an task item instead ofan attachmentitem? | David Schwab | Outlook and VBA | 1 | October 12th 06 06:44 AM |
Outlook 2003 always running? | tp | Outlook - General Queries | 2 | September 9th 06 01:52 AM |
Outlook pined while running macro | Bob Smith | Outlook and VBA | 5 | May 30th 06 03:08 PM |
How do I drag a task in task list of Outlook. It will not let me. | rpetralia | Outlook - Calandaring | 2 | April 5th 06 11:14 AM |
Is outlook meant to be left running? | [email protected] | Outlook - General Queries | 1 | February 28th 06 04:20 AM |