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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Detect outlook is running (and not shutting down)



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old June 9th 08, 07:59 PM posted to microsoft.public.outlook.program_addins
Federico Delgado
external usenet poster
 
Posts: 2
Default Detect outlook is running (and not shutting down)

Hi,

I am developing some code for outlook right now and the way I am detecting
the application running is by doing:

Marshal.GetActiveObject("Outlook.Application");

If I get a comexception then outlook is not running. The problem is that
sometimes this catches a dying outlook instance and the rest of my code tries
to execute against this non existent instance with all kind of errors.

Is there any way to get the current instance and ensure that it was not in
the middle of a closing process?

Thanks,

Federico
 




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
Detect outlook is running (and not shutting down) Federico Delgado Outlook - Using Forms 0 June 9th 08 07:40 PM
All .pst files lost after running detect and repair ( 2003 with vi hikk Outlook - Calandaring 1 March 16th 08 02:35 AM
Detect if outlook is running with RPC-Http Yahya Outlook and VBA 0 August 5th 06 09:18 AM
Detect if outlook is running with RPC-Http Yahya Add-ins for Outlook 0 August 5th 06 09:18 AM
Outlook shutting down. rdison Outlook - Using Contacts 1 February 14th 06 04:56 PM


All times are GMT +1. The time now is 09:16 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.