Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Dispose   (RSS)

New Dispose Guidelines

Joe Duffy has posted the revised Dispose, Finalization, and Resource Management Design Guideline . It's a great (and long) read. Check it out!
Posted by clyon | 0 Comments
Filed under:

The Truth About GCHandles

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
Posted by clyon | 6 Comments
Filed under: ,

Dispose Dos and Don'ts

Due to the positive response on my previous entry on Dispose, I thought I'd write another, this time on what one should and shouldn't do with a Dispose method. Dispose should contain code to release any unmanaged resources associated with the object's
Posted by clyon | 18 Comments
Filed under:

Demystifying Dispose

One commonly misunderstood feature is the relationship between disposable objects (Objects that implement the IDisposable interface) and the GC. I know there are a lot of online resources about patterns and best practices but there is still a lot of confusion.
Posted by clyon | 36 Comments
Filed under:
 
Page view tracker