Creation Context

When an unmanaged resource instance is created, the call stack and the instance are associated with a creation context. The creation context indicates how the resource instance was created. Below is a presentation of the different creation contexts that exist:

Description: ManagedClass      Managed runtime

The "managed runtime" creation context indicates that the instance was created by the runtime itself, e.g., internal structures used when loading classes and JITting.

Description: UnmanagedInterop      Unmanaged interop

The "unmanaged interop" creation context indicates that the instance was created using a P/Invoke call, i.e., by managed code that makes a call to an unmanaged function.

Description: OtherUnmanaged      Other unmanaged

The "other unmanaged" creation context indicates that the instance was created by a thread that has not run any managed code.