invalidGCHandleCookie MDA
.NET Framework 4.5
The invalidGCHandleCookie managed debugging assistant (MDA) is activated when a conversion from an invalid IntPtr cookie to a GCHandle is attempted.
The cookie is probably invalid because it was not originally created from a GCHandle, represents a GCHandle that has already been freed, is a cookie to a GCHandle in a different application domain, or was marshaled to native code as a GCHandle but passed back into the CLR as an IntPtr, where a cast was attempted.