2 ms·
The rule with .NET is that any pointers passed out into native code needs to be pinned (so it won't move) with unsafe code (fixed statement in C#) or accessed v
by barrkel 16y ago
The rule with .NET is that any pointers passed out into native code needs to be pinned (so it won't move) with unsafe code (fixed statement in C#) or accessed via a GCHandle.