The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


The RaceOnRCWCleanup managed debugging assistant (MDA) is activated when the common language runtime (CLR) detects that a Runtime Callable Wrapper (RCW) is in use when a call to release it is made using a command such as the System.Runtime.InteropServices.Marshal.ReleaseComObject(System.Object) method.

Access violations or memory corruption during or after freeing an RCW using ReleaseComObject or a similar method.

The RCW is in use on another thread or on the freeing thread stack. An RCW that is in use cannot be released.

Do not free an RCW that could be in use either in the current or in other threads.

This MDA has no effect on the CLR.

A message describing the error.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft