COM object that has been separated from its underlying RCW

Status
Not open for further replies.
T

TmFnYXJhag

Hi All,

I opened a mail in outlook 2007. Done some manipulations and closed it.

When I again open the same mail item I am getting the following error

COM object that has been separated from its underlying RCW cannot be used.

Can anybody help me resolving this issue?

Thanks in advance

Nagaraj Tadipatri
 
K

Ken Slovak - [MVP - Outlook]

You are most likely calling Marshal.ReleaseComObject() or it's finalize

cousin on that object, which releases the RCW for the object. Then you are

trying to re-use that object without re-instantiating it. Make sure not to

call one of the release methods if you still have any other references you

need to use for that object, or re-instantiate that object to create a new

RCW before using it again.

"Nagaraj" <nagaraj.tadipatri@gmail.com> wrote in message

news:F254B03D-77A9-43A3-B43D-D63C443A0AFF@microsoft.com...
> Hi All,

> I opened a mail in outlook 2007. Done some manipulations and closed it.
> When I again open the same mail item I am getting the following error

> COM object that has been separated from its underlying RCW cannot be used.

> Can anybody help me resolving this issue?

> Thanks in advance

> > Nagaraj Tadipatri
 
Status
Not open for further replies.
Top