![]() |
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 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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |