Is Outlook already runnig

  • Thread starter Thread starter j
  • Start date Start date
J

j

Hi,

I developed AddIn for Outlook 2003, sometime it's behave strange and
there is no other alternative then to
restart Outlook, however in Task Manager there are 2 instances of
Outlook, it means that Outlook not ended successfully.


My question is, how and what is a best way to check if Outlook
already runnig when my AddIn is up.




TNX,.
 
Thanks 4 replay,

I perform cleaning when need, and also when OL is shutting down, but
sometime on AddIn up there is excpetion that influence on AddIn
behave, and then user close and reopen the Outlook. I develop in
vs-2005 c#, vsto 2005, there is event 'Shutdown' that fires when
Outlook is closing, but for some reason it's not always fires.


Any suggestions???

TNX,.
 
Hi,

When u open new AddIn project in VS-2005 u get class with events
handlers:


private void ThisApplication_Startup(object sender, System.EventArgs
e)
{}


and

private void ThisApplication_Shutdown(object sender, System.EventArgs
e)
{}


so all my clean up i do in ThisApplication_Shutdown method, however
this event not always fires, and i don' know why.
 
It's also my experience that this event is quite useless. Please try the
Explorer wrapper.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am 14 Feb 2007 00:59:00 -0800 schrieb j:
Hi,

When u open new AddIn project in VS-2005 u get class with events
handlers:


private void ThisApplication_Startup(object sender, System.EventArgs
e)
{}


and

private void ThisApplication_Shutdown(object sender, System.EventArgs
e)
{}


so all my clean up i do in ThisApplication_Shutdown method, however
this event not always fires, and i don' know why.






There's no event called 'ShutDown'. Probably you need an Exporer wrapper and
trap each Explorer's Close event. If the last Explorer is closed then clean
up your Addin.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German:http://www.VBOffice.net/product.html?pub=6)

Am 13 Feb 2007 04:59:45 -0800 schrieb j:




Thanks 4 replay,
I perform cleaning when need, and also when OL is shutting down, but
sometime on AddIn up there is excpetion that influence on AddIn
behave, and then user close and reopen the Outlook. I develop in
vs-2005 c#, vsto 2005, there is event 'Shutdown' that fires when
Outlook is closing, but for some reason it's not always fires.
Any suggestions???

On Feb 13, 2:31 pm, "Michael Bauer [MVP - Outlook]" <[email protected]>
wrote:
Your Addin gets loaded by Outlook, that is Outlook then runs, of
course.
You
should check your code why Outlook doesn't terminate. You must explicitly
set your references on Outlook to Nothing and unload forms (if there're
any).
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German:http://www.VBOffice.net/product.html?pub=6)
Am 13 Feb 2007 03:52:17 -0800 schrieb j:

I developed AddIn for Outlook 2003, sometime it's behave strange and
there is no other alternative then to
restart Outlook, however in Task Manager there are 2 instances of
Outlook, it means that Outlook not ended successfully.
My question is, how and what is a best way to check if Outlook
already runnig when my AddIn is up.
TNX,.- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -
 
Back
Top