• Subject: Detect outlook is running (and not shutting down)
  • Author: Federico Delgado
  • Date: 09 Jun
  • References:
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
09 JunDetect outlook is running (and not shutting down).Federico Delgado
09 Jun\ Re: Detect outlook is running (and not shutting down).Ken Slovak - [MVP - O...
All times are in (US) Eastern Daylight Time (GMT -4:00)