> Are you opening it manually or programmatically? If the later are you returning the saved item with Namespace.GetItemFromID after releasing it?
>
> You may need to call GC.Collect to force garbage collection to make sure the item is 100% released.
>
> --
> Sue Mosher, Outlook MVP
> Author of Configuring Microsoft Outlook 2003
>
http://www.turtleflock.com/olconfig/index.htm> and Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
>
http://www.outlookcode.com/jumpstart.aspx>
>
>
> "spareway" <spare...[ at ]gmail.com> wrote in messagenews:1167864575.041567.94570[ at ]q40g2000cwq.googlegroups.com...
>
> > sue,
>
> > thanks for the response. I am changing the messageclass in the
> > NewMailEx event and i do release the object by executing:
> > Marshal.ReleaseComObject(mailItem);
>
> > But I still have the same behavior. Any other ideas?
>
> > thanks,
>
> > craig
>
> > On Jan 3, 4:42 pm, "Sue Mosher [MVP-Outlook]" <sue...[ at ]outlookcode.com>
> > wrote:
> >> Your code needs to release the object used to make the changes, then return the item using a different object variable (HINT: Use Namespace.GetItemFromID) and display that item.
>
> >> "spareway" <spare...[ at ]gmail.com> wrote in messagenews:1167858938.644855.219890[ at ]i12g2000cwa.googlegroups.com...
> >> > Hi,
>
> >> > I have a C# addin that changes the messageclass of the incoming email
> >> > message from IPM.Note to IPM.Note.ZZZ. The message class is changed
> >> > and the new icon is displayed in the message pane. But when i open the
> >> > message it displayed as an IPM.Note. If i restart outlook and open
> >> > the message, it is displayed as an IPM.Note.ZZZ.
>
> >> > thanks for any help.
>
> >> > -craig- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -