PINNING
It is possible to hand out a raw pointer to a managed object. But to do so, you effectively need to the tell the CLR the object should not be moved in memory while something(for example, a native code component used in interop) holds on to the pointer. The task of doing this is called pinning and
is a specialized concept typically used only in interop scenarios.
Few topics on Memory allocations during the constructor call.
No comments:
Post a Comment