COM object that has been separated from its underlying RCW

N

Nagaraj

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

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