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 doesn't closed well



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 13th 06, 12:16 PM posted to microsoft.public.outlook.program_addins
David Cebrian
external usenet poster
 
Posts: 15
Default outlook doesn't closed well

Hi people,

I have a COM Add-in for Outlook 2003, and the problem is when I close the
outlook, the process outlook.exe in the task manager don't disapear, then if
I try to open the outlook again it fails.

Anybody can give an idea for this

Tanks in advance,

Jaume F.


  #2  
Old February 13th 06, 03:27 PM posted to microsoft.public.outlook.program_addins
donald
external usenet poster
 
Posts: 25
Default outlook doesn't closed well

have you try outlook with out your COM add-in load to see if it is your
add-in or not?

Donald

  #3  
Old February 13th 06, 03:41 PM posted to microsoft.public.outlook.program_addins
David Cebrian
external usenet poster
 
Posts: 15
Default outlook doesn't closed well

yes, when I execute the outlook without my add-in it works fine, the problem
is when I close outlook without remove my add-in, after I can not open the
outlook again, because the process outlook.exe still in the task manager.


"donald" escribió en el mensaje
oups.com...
have you try outlook with out your COM add-in load to see if it is your
add-in or not?

Donald



  #4  
Old February 13th 06, 03:45 PM posted to microsoft.public.outlook.program_addins
Thaddaeus Parker
external usenet poster
 
Posts: 17
Default outlook doesn't closed well

This is due to the fact that you are not releasing any of your objects that
are being created by your add-in. You MUST be absolutely sure that in
explorer Close Event or some uninitHandler that you are releasing whatever
objects you were using during the execution of your add-in namely: buttons,
menu items, wrapped outlook objects. Without know what your code is doing
right now, I would suggest that you in your on disconnection event of the
add-in go and set all of your Commandbarbuttons, explorers, inspectors,
folders to null (Nothing) and see if that fixes your problem.

Regards,

Thaddaeus.
"David Cebrian" wrote in message
...
yes, when I execute the outlook without my add-in it works fine, the
problem
is when I close outlook without remove my add-in, after I can not open the
outlook again, because the process outlook.exe still in the task manager.


"donald" escribió en el mensaje
oups.com...
have you try outlook with out your COM add-in load to see if it is your
add-in or not?

Donald





  #5  
Old February 13th 06, 05:08 PM posted to microsoft.public.outlook.program_addins
Josh Einstein
external usenet poster
 
Posts: 57
Default outlook doesn't closed well

I also recommend running the garbage collector when explorers and inspectors
count become 0.

GC.Collect();
GC.WaitForPendingFinalizers();

This will ensure anything abandoned is collected by the GC and their
finalizers are run (which decrements their reference counters, thus freeing
your hold on the underlying COM object).

And also as I mentioned in the other group. I've found that accidentally
accessing Outlook objects from a background thread will cause random
problems with Outlook sticking around.

Oh and be sure to explicitly unbind any events you're listening to. I found
in a memory profiler that huge trees of objects were being kept alive
because of the way .NET manages event bindings.

--
Josh Einstein
Einstein Technologies
Microsoft Tablet PC MVP
Tablet Enhancements for Outlook 2.0 - Try it free for 14 days
www.tabletoutlook.com


"Thaddaeus Parker" wrote in message
...
This is due to the fact that you are not releasing any of your objects
that are being created by your add-in. You MUST be absolutely sure that
in explorer Close Event or some uninitHandler that you are releasing
whatever objects you were using during the execution of your add-in
namely: buttons, menu items, wrapped outlook objects. Without know what
your code is doing right now, I would suggest that you in your on
disconnection event of the add-in go and set all of your
Commandbarbuttons, explorers, inspectors, folders to null (Nothing) and
see if that fixes your problem.

Regards,

Thaddaeus.
"David Cebrian" wrote in message
...
yes, when I execute the outlook without my add-in it works fine, the
problem
is when I close outlook without remove my add-in, after I can not open
the
outlook again, because the process outlook.exe still in the task manager.


"donald" escribió en el mensaje
oups.com...
have you try outlook with out your COM add-in load to see if it is your
add-in or not?

Donald







  #6  
Old February 14th 06, 10:59 AM posted to microsoft.public.outlook.program_addins
David Cebrian
external usenet poster
 
Posts: 15
Default outlook doesn't closed well

Hi Josh,

I run the garbage collector, but the problem persists.

thanks for your time.

"Josh Einstein" escribió en el mensaje
...
I also recommend running the garbage collector when explorers and

inspectors
count become 0.

GC.Collect();
GC.WaitForPendingFinalizers();

This will ensure anything abandoned is collected by the GC and their
finalizers are run (which decrements their reference counters, thus

freeing
your hold on the underlying COM object).

And also as I mentioned in the other group. I've found that accidentally
accessing Outlook objects from a background thread will cause random
problems with Outlook sticking around.

Oh and be sure to explicitly unbind any events you're listening to. I

found
in a memory profiler that huge trees of objects were being kept alive
because of the way .NET manages event bindings.

--
Josh Einstein
Einstein Technologies
Microsoft Tablet PC MVP
Tablet Enhancements for Outlook 2.0 - Try it free for 14 days
www.tabletoutlook.com


"Thaddaeus Parker" wrote in message
...
This is due to the fact that you are not releasing any of your objects
that are being created by your add-in. You MUST be absolutely sure that
in explorer Close Event or some uninitHandler that you are releasing
whatever objects you were using during the execution of your add-in
namely: buttons, menu items, wrapped outlook objects. Without know what
your code is doing right now, I would suggest that you in your on
disconnection event of the add-in go and set all of your
Commandbarbuttons, explorers, inspectors, folders to null (Nothing) and
see if that fixes your problem.

Regards,

Thaddaeus.
"David Cebrian" wrote in message
...
yes, when I execute the outlook without my add-in it works fine, the
problem
is when I close outlook without remove my add-in, after I can not open
the
outlook again, because the process outlook.exe still in the task

manager.


"donald" escribió en el mensaje
oups.com...
have you try outlook with out your COM add-in load to see if it is

your
add-in or not?

Donald









 




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
Does outlook download e-mails even when the program is closed? rob67 Outlook - Installation 3 February 25th 06 04:06 PM
Custom Contact Form does not update fields until Outlook is closed Rick Outlook - Using Forms 0 February 22nd 06 12:41 AM
e-mail retrieved when Outlook is closed GregL Outlook - Installation 3 February 13th 06 04:57 PM
Can I get calendar reminders with Outlook closed? beakmom Outlook - General Queries 1 February 12th 06 10:41 PM
Mail being checked even though Outlook is closed and exited. Paul M Outlook - General Queries 1 January 27th 06 07:11 AM


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