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

active inspector in memory



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 23rd 09, 03:23 PM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default active inspector in memory

When open a mail acive inspector comes in picture (i set all events for
active inspector), get current item (mail item, set all events for mail
item) from acive inspector, modify it and save it.
When close mail free all events for mail item and active inspector and set
them null. But i found active inspector and its current item still remain in
memory until i change the selection in active explorer (after closing mail
select another mail in active explorer). It means outlook keeps active
inspector in memory until we change any other mail. How to free active
inspector from memory without changing selection.


  #2  
Old October 23rd 09, 09:49 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default active inspector in memory

I'm not sure if this is what you're talking about, or even what version of
Outlook you're using or what language, but Outlook caches items and releases
them when it feels like it. You can't force a release of an item from the
cache, in fact except in Outlook 2007 you can't even detect from Outlook
when the item is released.

There is a method in 2007 that tells you that, the item.Unload() event.

Using managed code (VB.NET or C#) can also contribute to that since even
setting an item to null won't release it fully until the RCW is destroyed
and the garbage collector runs on the item. You can help accelerate that by
calling Marshal.ReleaseComObject() on the item until the function returns 0,
then calling GC.Collect().

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


"Ashish" wrote in message
...
When open a mail acive inspector comes in picture (i set all events for
active inspector), get current item (mail item, set all events for mail
item) from acive inspector, modify it and save it.
When close mail free all events for mail item and active inspector and set
them null. But i found active inspector and its current item still remain
in memory until i change the selection in active explorer (after closing
mail select another mail in active explorer). It means outlook keeps
active inspector in memory until we change any other mail. How to free
active inspector from memory without changing selection.


 




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
How to get active inspector window handle? madhavi Add-ins for Outlook 3 October 13th 09 07:55 PM
How to get active inspector window handle? madhavi Add-ins for Outlook 0 October 12th 09 07:37 AM
disable a menu in active inspector Ashish Add-ins for Outlook 1 October 8th 09 02:38 PM
no active inspector Jenn Outlook - Installation 2 March 23rd 07 07:32 PM
2 GB of memory over 1 GB of memory free, and outlook complains of being out of memory David Hettel Outlook Express 7 October 18th 06 12:08 PM


All times are GMT +1. The time now is 12:31 PM.


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.