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

Help, Outlook2003 won't quit after call OnDisconnection?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 11th 09, 11:02 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default Help, Outlook2003 won't quit after call OnDisconnection?

I write a addin, it have inspector wrapper and explorer wrapper. I release
the resource i allocated, but after run codes in OnDisconnection, outlook's
process is still in task manager. Tray icon already disappeared. What should
i check in my codes? please help.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200909/1

Ads
  #2  
Old September 11th 09, 02:40 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Help, Outlook2003 won't quit after call OnDisconnection?

Then something in your code is not released if Outlook isn't exiting, and it
does when your code isn't running.

Check all of your Outlook objects to make sure they are being released, as
well as any Office objects. Make sure any timers or threads you started are
closed. If using managed code you may need to call
Marshal.ReleaseComObject() on your objects, try adding calls to GC.Collect()
and GC.WaitForPendingFinalizers() if using managed 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


"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:9bf4122e055ad@uwe...
I write a addin, it have inspector wrapper and explorer wrapper. I release
the resource i allocated, but after run codes in OnDisconnection,
outlook's
process is still in task manager. Tray icon already disappeared. What
should
i check in my codes? please help.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200909/1


  #3  
Old September 14th 09, 03:55 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default Help, Outlook2003 won't quit after call OnDisconnection?

Hi, ken, i tested my addin in VMware, outlook can quit normally. It seems
that the problem is caused by some other things, i remembered that i killed
the outlook.exe process in task manager manually(Atl + F4) while it quiting
for several times. Maybe this caused the outlook out of its manner.

Ken Slovak - [MVP - Outlook] wrote:
Then something in your code is not released if Outlook isn't exiting, and it
does when your code isn't running.

Check all of your Outlook objects to make sure they are being released, as
well as any Office objects. Make sure any timers or threads you started are
closed. If using managed code you may need to call
Marshal.ReleaseComObject() on your objects, try adding calls to GC.Collect()
and GC.WaitForPendingFinalizers() if using managed code.

I write a addin, it have inspector wrapper and explorer wrapper. I release
the resource i allocated, but after run codes in OnDisconnection,
outlook's
process is still in task manager. Tray icon already disappeared. What
should
i check in my codes? please help.


--
Message posted via http://www.officekb.com

  #4  
Old September 14th 09, 01:59 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Help, Outlook2003 won't quit after call OnDisconnection?

If under a VM the code quits cleanly then the problem is either some other
Outlook integration code that's running on the problem machine or hung
instances of Outlook. Make sure task manager doesn't show an Outlook process
running before trying again and see if Outlook quits cleanly. If not it's
probably some other code, which you can find by a process of elimination.

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


"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:9c160fc274e14@uwe...
Hi, ken, i tested my addin in VMware, outlook can quit normally. It seems
that the problem is caused by some other things, i remembered that i
killed
the outlook.exe process in task manager manually(Atl + F4) while it
quiting
for several times. Maybe this caused the outlook out of its manner.


 




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
MSN Email Quit New Orleans Novice Outlook Express 2 August 14th 07 04:36 AM
Once Outlook was quit, it cannot be restarted Oriolus Outlook - Installation 10 July 25th 07 10:06 AM
Outlook just quit working Sharon Outlook - Installation 2 June 4th 07 01:57 AM
OE 6.x quit connecting. New Orleans Novice Outlook Express 1 June 1st 07 09:25 PM
OH YES I THINK THEY DID CALL MR BUT I DID NOT TALK TO THEM MY MAMA SAI CALL HER BACK LATER CUZ SHE IS DOING SOMETHG RIGHT NOW WHY DID YOU CALL ME NO THEIR IS ONLY ONE ME YES SIR Outlook Express 0 February 25th 07 09:12 AM


All times are GMT +1. The time now is 03:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.