Outlook 2003 with multiple explorers won't shutdown

Status
Not open for further replies.
T

Teodora Gancheva

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

"Teodora Gancheva" <TeodoraGancheva> wrote in

message news:775AE2BA-310B-4A42-8B7C-1E50127E20C8@microsoft.com...
> 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 '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
 
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
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.

> >

>

> "Teodora Gancheva" <TeodoraGancheva> wrote in
> message news:775AE2BA-310B-4A42-8B7C-1E50127E20C8@microsoft.com...
> > 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 '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


>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
E Problem with multiple wordmail editors in Outlook 2003 Outlook VBA and Custom Forms 4
K 2003 Outlook Contacts - how do I add text to multiple contacts .... Outlook VBA and Custom Forms 2
D Outlook 2003 multiple windows Outlook VBA and Custom Forms 1
D Wishlist How to use 'app password' in Outlook 2003 after Google pulled plug on "less secure apps" Using Outlook 2
J Outlook 2003 .pst Will Not Restore Completely to Outlook 2019 Using Outlook 5
D Outlook 2003 Mail Fails Using Outlook 1
D Wrong email address in Outlook 2003 "From" tab in new outgoing emails Using Outlook 4
V Outlook 2003 and Windows 11 Using Outlook 4
glnz Moving from Outlook 2003 to MS365 Outlook - need basics Using Outlook 4
I Outlook 2003 shows html code when To: field is empty Using Outlook 7
B Outlook 2003 email sending & receiving suddenly stopped working Using Outlook 3
H Outlook 2003 find by "has attachment" Using Outlook 1
glnz How set up new IMAP on Outlook-Office 365 and merge in pst from Outlook 2003 for same two email accounts? Using Outlook 5
P Import Categories from Outlook 2003 Using Outlook 8
V Outlook 2003 problem with Windows 10 Creators Update 1709 Using Outlook 0
M Outlook 2003 pictures - some visible, some not Using Outlook 0
S Outlook 2003 to Outlook 2013 pst file Using Outlook 5
O Memory Leak in Outlook 2003 Using Outlook 3
W Changing looks of emails in Outlook 2003 Using Outlook 0
O Outlook 2003 can't send, but settings seem OK Using Outlook 1
P URL Hyperlink not working correctly in Outlook 2003 Using Outlook 10
O Outlook 2003 can't open contacts. Using Outlook 2
O Promoting Outlook 2003 User Templates Using Outlook 1
O W-a-a-y too many PSTs (Outlook 2003) Using Outlook 0
J Outlook 2003-2010 PST Field Editor Using Outlook 1
P Outlook 2003 - Do I need a new profile? Using Outlook 2
E Want to Import Outlook 2003 pst files to later version Using Outlook 6
A error message outlook 2003 Using Outlook 1
B Seeking advice now Outlook 2003 is unsupported by Exchange Using Outlook 4
O Change Debit to Credit in Outlook 2003? Using Outlook 1
J problems downloading POP3 emails to Outlook 2003 Using Outlook 1
G Outlook 2003 VBA Won't Run In Outlook 2010 Outlook VBA and Custom Forms 4
P Outlook 2003 - possible to recreate corrupt account? Using Outlook 3
Calvyn Outlook 2003 cannot import .vcs subject Using Outlook 1
T Query about one aspect of migrating .pst files from Outlook 2003 to Outlook 2013 Using Outlook 5
C Outlook 2003 contacts Using Outlook 1
G Configuring Outlook 2003 for Gmail with both pop3 & imap4 accounts Using Outlook 1
M HELP--Extract Data from 2003 outlook transfer to excel spreadsheet Using Outlook 1
V Outlook 2003 editing problem Using Outlook 4
X Outlook 2003 not sending all of the new email message Using Outlook 1
2 How to use outlook 2003 calendar in always offline mode Using Outlook 0
G Outlook 2003 I need to move email to folder based on subject, using wild card Using Outlook 0
G outlook 2013 - Open In Outlook 2003 Using Outlook 1
A Exchange 2003 Outlook 2010 64 Bit- AutoDiscover Connection Err - Certificate Exchange Server Administration 9
T Use Outlook 2003 with Office 2013 Using Outlook 1
D Outlook 2003 contact folder opend in scrolled down position Using Outlook 2
O Need advice ASAP! Outlook 2003. Using Outlook 1
H Custom Contact form not working in Outlook 2003 Using Outlook 3
O Outlook 2003 forms problem Using Outlook 3
O Duplicate folders in Outlook 2003 Using Outlook 3

Similar threads

Back
Top