It sounds like you haven't released all object references to that original
object. Make sure you do that. Using managed code you might also have to
call Marshal.ReleaseComObject() on the object as well as GC.Collect().
In addition, make sure you aren't creating implicit object variables that
you cannot release. That happens when you use multiple dot operators such as
this:
explorer.Selection.Count
That creates an implicit Selection object that you can't release. The better
way is to do something like this:
Outlook.Selection selection = explorer.Selection;
int count = selection.Count;
--
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
"Deepak N" endeep123[at]gmail[dot]com wrote in message
...
I have outlook plugin in which OnLoad of Ribbon on contact form(custom
form),I access Application.ActiveInspector().CurrentItem as ContactItem.
When I open a contact
*First time Application.ActiveInspector().CurrentItem gives correct value.
*Then I change First Name of this contact in Exchange server through code.
*Then i synchronize Outlook with exchange server and open the form, it
displays old value of the contact. If try to edit and save it says contact
being edited by other user or program
It is not Sync issue SINCE It displays the new value in the Contact's
Business card view!!.. Submitted using http://www.outlookforums.com