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

Is Outlook already runnig



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 13th 07, 12:52 PM posted to microsoft.public.outlook.program_addins
j
external usenet poster
 
Posts: 109
Default Is Outlook already runnig

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,.

  #2  
Old February 13th 07, 01:31 PM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Is Outlook already runnig



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?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am 13 Feb 2007 03:52:17 -0800 schrieb 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,.

  #3  
Old February 13th 07, 01:59 PM posted to microsoft.public.outlook.program_addins
j
external usenet poster
 
Posts: 109
Default Is Outlook already runnig

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,.


On Feb 13, 2:31 pm, "Michael Bauer [MVP - Outlook]"
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?...4&languageid=1
(German:http://www.VBOffice.net/product.html?pub=6)

Am 13 Feb 2007 03:52:17 -0800 schrieb 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,.- Hide quoted text -


- Show quoted text -



  #4  
Old February 14th 07, 08:11 AM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Is Outlook already runnig



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?...4&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???

TNX,.


On Feb 13, 2:31 pm, "Michael Bauer [MVP - Outlook]"
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?...4&languageid=1
(German:http://www.VBOffice.net/product.html?pub=6)

Am 13 Feb 2007 03:52:17 -0800 schrieb 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,.- Hide quoted text -


- Show quoted text -

  #5  
Old February 14th 07, 09:59 AM posted to microsoft.public.outlook.program_addins
j
external usenet poster
 
Posts: 109
Default Is Outlook already runnig

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.






On Feb 14, 9:11 am, "Michael Bauer [MVP - Outlook]"
wrote:
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?...4&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???


TNX,.


On Feb 13, 2:31 pm, "Michael Bauer [MVP - Outlook]"
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?...4&languageid=1
(German:http://www.VBOffice.net/product.html?pub=6)


Am 13 Feb 2007 03:52:17 -0800 schrieb 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,.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #6  
Old February 15th 07, 07:34 AM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Is Outlook already runnig



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?...4&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.






On Feb 14, 9:11 am, "Michael Bauer [MVP - Outlook]"
wrote:
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?...4&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???


TNX,.


On Feb 13, 2:31 pm, "Michael Bauer [MVP - Outlook]"
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?...4&languageid=1
(German:http://www.VBOffice.net/product.html?pub=6)


Am 13 Feb 2007 03:52:17 -0800 schrieb 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,.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -

 




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


All times are GMT +1. The time now is 08:34 PM.


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.