4 ms·
> (I believe once the GCHandle is freed/finalized by the GC, it will automatically unpin the object.) GCHandle is a struct so you have to explicitly call GCHa
by johncolanduoni 9y ago
> (I believe once the GCHandle is freed/finalized by the GC, it will automatically unpin the object.)
GCHandle is a struct so you have to explicitly call GCHandle.Free().
- kevingadd 9y agoMakes sense. I make a point of calling Free but it wasn't clear to me whether the pin was attached to the object reference (since the handle contains a reference).