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

Outlook 2003 with multiple explorers won't shutdown



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 29th 09, 04:16 PM posted to microsoft.public.outlook.program_addins
Teodora Gancheva[_2_]
external usenet poster
 
Posts: 9
Default Outlook 2003 with multiple explorers won't shutdown

Hi,

I am developing a C# COM add-in for Outlook 2003 and 2007.
Recently the need for supporting multiple Outlook explorers arised and I am
currently implementing that. I used Ken Slovak's Outlook project
CSAddinTemplate as a sample - many thanks for the great template and all the
guidance in developing COM add-ins for Office :-).
All is working fine for Outlook 2007, but in Outlook 2003 (it's SP3) when I
start multiple explorers and then close them one by one, Outlook process
won't shutdown (OnDisconnection does not even get called). If I only have one
Outlook explorer, the process exits nicely.
I thought I had forgotten to release any references to Outlook objects, so I
disabled my add-in from the registry and left only the CSAddinTemplate to
load - this again led Outlook to not shut down. If I disable all add-ins,
Outlook closes without any issues. Also if I use File-Exit, and not the X
button, Outlook shuts down nicely, no matter if I have add-ins loaded and how
many explorers are opened.

Have you ever encountered such issues with Outlook 2003 - is it a bug or do
I need to re-check the code for unreleased references?
Many thanks for all ideas and comments,
Teodora Gancheva
Ads
  #2  
Old September 29th 09, 09:00 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2003 with multiple explorers won't shutdown

Check things again and then if you still have problems post here, and I'll
see what's going on.

FWIW I haven't had any problems with Outlook 2003, although the timing of
things in the template was adjusted for Outlook 2007.

A lot of work was done by MS for Outlook 2007 to fix the OnDisconnection()
not firing bug, it's possible things aren't optimized for 2003 in the
published template. I use a highly modified version of that template myself
for my own code.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Teodora Gancheva" wrote in
message ...
Hi,

I am developing a C# COM add-in for Outlook 2003 and 2007.
Recently the need for supporting multiple Outlook explorers arised and I
am
currently implementing that. I used Ken Slovak's Outlook project
CSAddinTemplate as a sample - many thanks for the great template and all
the
guidance in developing COM add-ins for Office :-).
All is working fine for Outlook 2007, but in Outlook 2003 (it's SP3) when
I
start multiple explorers and then close them one by one, Outlook process
won't shutdown (OnDisconnection does not even get called). If I only have
one
Outlook explorer, the process exits nicely.
I thought I had forgotten to release any references to Outlook objects, so
I
disabled my add-in from the registry and left only the CSAddinTemplate to
load - this again led Outlook to not shut down. If I disable all add-ins,
Outlook closes without any issues. Also if I use File-Exit, and not the X
button, Outlook shuts down nicely, no matter if I have add-ins loaded and
how
many explorers are opened.

Have you ever encountered such issues with Outlook 2003 - is it a bug or
do
I need to re-check the code for unreleased references?
Many thanks for all ideas and comments,
Teodora Gancheva


  #3  
Old October 2nd 09, 11:20 AM posted to microsoft.public.outlook.program_addins
Teodora Gancheva[_2_]
external usenet poster
 
Posts: 9
Default Outlook 2003 with multiple explorers won't shutdown

For anyone that could encounter the same issue, here's what resolved the
problem in my case.
I have a private variable of type Explorer in the ExplorerWrapper class to
keep a reference to the Outlook Explorer object. In the Close event of the
Explorer I was assigning null to the Explorer variable, but this seems to not
have been enough. I added Marshal.FinalReleaseComObject(this.explorer), and
now Outlook is successfully shutting down.
Regards,
Teodora Gancheva

"Ken Slovak - [MVP - Outlook]" wrote:

Check things again and then if you still have problems post here, and I'll
see what's going on.

FWIW I haven't had any problems with Outlook 2003, although the timing of
things in the template was adjusted for Outlook 2007.

A lot of work was done by MS for Outlook 2007 to fix the OnDisconnection()
not firing bug, it's possible things aren't optimized for 2003 in the
published template. I use a highly modified version of that template myself
for my own code.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Teodora Gancheva" wrote in
message ...
Hi,

I am developing a C# COM add-in for Outlook 2003 and 2007.
Recently the need for supporting multiple Outlook explorers arised and I
am
currently implementing that. I used Ken Slovak's Outlook project
CSAddinTemplate as a sample - many thanks for the great template and all
the
guidance in developing COM add-ins for Office :-).
All is working fine for Outlook 2007, but in Outlook 2003 (it's SP3) when
I
start multiple explorers and then close them one by one, Outlook process
won't shutdown (OnDisconnection does not even get called). If I only have
one
Outlook explorer, the process exits nicely.
I thought I had forgotten to release any references to Outlook objects, so
I
disabled my add-in from the registry and left only the CSAddinTemplate to
load - this again led Outlook to not shut down. If I disable all add-ins,
Outlook closes without any issues. Also if I use File-Exit, and not the X
button, Outlook shuts down nicely, no matter if I have add-ins loaded and
how
many explorers are opened.

Have you ever encountered such issues with Outlook 2003 - is it a bug or
do
I need to re-check the code for unreleased references?
Many thanks for all ideas and comments,
Teodora Gancheva



 




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
Problem: Outlook 2003 will not shutdown. Processes still running Rx Outlook - General Queries 3 January 9th 09 01:45 PM
C++ and Explorers Michael Tissington[_2_] Add-ins for Outlook 5 October 28th 08 03:08 PM
List of explorers Hichem Sarrai Add-ins for Outlook 1 July 14th 08 11:17 PM
Alternate data source for folders/explorers (synthesizing mailitems) freenews.netfront.net Add-ins for Outlook 3 October 15th 07 10:31 PM
Outlook 2003 will close but not shutdown [email protected] Outlook - General Queries 1 June 6th 06 10:42 PM


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