OL2007 memory objects in preview

S

Sebastian S.

If an item changes (custom properties, subject, messageclass) most of the
changes are not updated in the preview pane if the item was already viewed
there.

My C# AddIn changes the messageclass of items.
For that changed messageclass a custom form region is registered
(replace-all / preview only).

Now, OL doesn't show the "new" item as changed if it showed before in the
preview pane. I think the item resides in memory till the garbace collector
swipes it.

So, is there a way to tell OL to "unload" an item IMMEDIATELY?

Thanks in advance.

Cheers
Sebastian Sutor
 
K

Ken Slovak - [MVP - Outlook]

There's no way to get Outlook to unload an item from its cache. There is an
event in Outlook 2007 that will tell you when it's unloaded, but no way to
force that. Your best bet is to release all references to it and call the
garbage collector after calling Marshal.ReleaseComObject(), but even then
Outlook will release the object in its own time.
 
S

Sebastian S.

Lot of thanks for the quick answers!

Not what I have hoped for... but now i know my enemy and it's not guessing
around.

Thanks again.

Cheers
Sebastian Sutor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top