A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook Task Still Running



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 20th 06, 10:14 PM posted to microsoft.public.outlook.program_vba
Dan
external usenet poster
 
Posts: 166
Default Outlook Task Still Running

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  
Old October 20th 06, 11:16 PM posted to microsoft.public.outlook.program_vba
Peter Marchert
external usenet poster
 
Posts: 208
Default Outlook Task Still Running

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  
Old October 20th 06, 11:22 PM posted to microsoft.public.outlook.program_vba
Dan
external usenet poster
 
Posts: 166
Default Outlook Task Still Running

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  
Old October 21st 06, 12:26 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook Task Still Running

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  
Old October 21st 06, 01:07 AM posted to microsoft.public.outlook.program_vba
Dan
external usenet poster
 
Posts: 166
Default Outlook Task Still Running

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  
Old October 21st 06, 02:37 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook Task Still Running

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 11:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.