Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


The FailedQI managed debugging assistant (MDA) is activated when the runtime calls QueryInterface on a COM interface pointer on behalf of a runtime callable wrapper (RCW), and the QueryInterface call fails.

A cast on an RCW fails, or a call to COM from an RCW fails unexpectedly.

  • The call is made from the wrong context.

  • The registered proxy is failing the QueryInterface call because the call was attempted in the wrong context.

  • An OLE-owned proxy returned a failure HRESULT.

See the MSDN documentation on COM rules.

If a QueryInterface call fails, the context is switched and the QueryInterface call is attempted again to see if an incorrect context was at fault.

The managed name of the interface, the GUID of the interface, and the HRESULT of the failure.

© 2016 Microsoft