Sign in
Chris Lyon's WebLog
Or How I Learned To Stop Worrying And Love The GC
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Tags
Blog
Dispose
GC
GCHandles
Misc
Orcas
Server GC
WeakReferences
Browse by Tags
MSDN Blogs
>
Chris Lyon's WebLog
>
All Tags
>
gchandles
Tagged Content List
Blog Post:
The Truth About GCHandles
clyon
I've heard several people asking why GCHandle doesn't implement IDisposable, considering it wraps an unmanaged resource (a handle) and needs to be explicitly freed (using GCHandle.Free()). Before I explain the reason, I want to give a little background on GCHandles and their dangers. What's a GCHandle...
on
18 Mar 2005
Blog Post:
GCHandles, Boxing and Heap Corruption
clyon
A GCHandle is a struct used to hold onto a managed object to be used by unmanaged code. With a GCHandle you can (among other things): Prevent an object from being garbage collected if unmanaged code has the only live reference to it Pin an object in memory, so it won’t be relocated in memory by the garbage...
on
17 Sep 2004
Page 1 of 1 (2 items)