![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() 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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() 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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|