active inspector in memory

Status
Not open for further replies.
A

Ashish

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

Ken Slovak - [MVP - Outlook]

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().

"Ashish" <akohli_2004@hotmail.com> wrote in message

news:etFshy%23UKHA.4704@TK2MSFTNGP06.phx.gbl...
> 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.
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M How to get active inspector window handle? Outlook VBA and Custom Forms 3
A disable a menu in active inspector Outlook VBA and Custom Forms 1
P Automate Outlook Start - No Active Explorer Object Found Using Outlook 10
S Active Directory Management Tools for Administrators Using Outlook 0
G Problems with Active Directory Rights Management Services (AD RMS) in Outlook 2013 Exchange Server Administration 0
Diane Poremsky Import Images into the Active Directory Using Outlook 0
S How to send an OUTLOOK task to a contact out of my active directory? Using Outlook 2
E Outlook rule only active certain times of day Using Outlook 6
R HELP!!! Email template with active excel spreadsheet Using Outlook 1
C active/passive broadband connections to maintain various IT services Exchange Server Administration 2
R Went from outlook 2003 to 2010 - can't retrieve active for contacts Using Outlook 0
C Active Directory does not exist or cannot be contacted Exchange Server Administration 12
A Active task for selected days options Outlook Wishlist 1
T Exchange 2010 servers can't communicate with Active Directory Exchange Server Administration 4
L VBA Processing of Active E-Mail Message Outlook VBA and Custom Forms 2
A Active explorer issue Outlook VBA and Custom Forms 15
M Bring back Active tasks for selected days Outlook Wishlist 1
M Outlook 2010 How could I globally redesign an outlook template form/region/inspector template used to display mail lists or an individual mails? Outlook VBA and Custom Forms 0
B Auto Preview Attachment in Inspector Reading Pane Outlook VBA and Custom Forms 1
D help with Item/Inspector close event Outlook VBA and Custom Forms 1
T New Inspector word editor crash Outlook 2003 Outlook VBA and Custom Forms 3
A running code after the new inspector is visible Outlook VBA and Custom Forms 1
N Modal form is not properly working on inspector Outlook VBA and Custom Forms 10
K add a designed group into a existing inspector ribbon Outlook VBA and Custom Forms 7
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
T How to get Inspector object from Window handle Outlook VBA and Custom Forms 2
K Get Inspector Ptr In Outlook 2007. Outlook VBA and Custom Forms 3
T How to get Inspector or MailItem from wordEditor Outlook VBA and Custom Forms 6
S PR_MESSAGEFLAGS & Compose/Read - Inspector Outlook VBA and Custom Forms 4
S Error 287 on Inspector.Close() Outlook VBA and Custom Forms 4
K Buttons are added multiple times in New Inspector window Outlook VBA and Custom Forms 4
V How to find mailitem in the inspector is a brand new one Outlook VBA and Custom Forms 2
B How to get the path from an outlook.Inspector Outlook VBA and Custom Forms 4
S inspector toolbar buttons get multiple events Outlook VBA and Custom Forms 3
S Quick access toolbar in inspector window Outlook VBA and Custom Forms 3
T Using Ribbon in Inspector window Outlook VBA and Custom Forms 2
P Inspector.WordEditor always returns null Outlook VBA and Custom Forms 3
Q Inspector Bug/Question Outlook VBA and Custom Forms 3
Z Inspector.CurrentItem causes Shared Calendar Issue Outlook VBA and Custom Forms 5
O Memory Leak in Outlook 2003 Using Outlook 3
M Outlook.exe 1.2Gb memory usage if running certain BCM reports BCM (Business Contact Manager) 8
G "Cannot load GUI library into memory" Outlook VBA and Custom Forms 3
M Not enough free memory BCM (Business Contact Manager) 11
C Business Contact Manager and Outlook 2007 "not enough free memory BCM (Business Contact Manager) 5
R Hi, Ken, What should be noticed to avoid memory leak in outlook addin? Outlook VBA and Custom Forms 3
N Memory with MailItem.Send Outlook VBA and Custom Forms 1
J Outlook 2007 with BCM - Out of Memory after MSO12 SP2 installation BCM (Business Contact Manager) 4
R Outlook staying in memory Outlook VBA and Custom Forms 2
P Outlook 2007 with BCM - Out of Memory BCM (Business Contact Manager) 13

Similar threads

Top