COM object that has been separated from its underlying RCW

  • Thread starter Thread starter Nagaraj
  • Start date Start date
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
 
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.
 
Back
Top