Geeks With Blogs

News View David Douglass's profile on LinkedIn

My Presentations
David Douglass .NET on My Mind May 2008 Entries
Observations on .NET Object Disposal
Here's what I've learned in a recent fight with a nasty object disposal bug. Every .NET developer needs to understand object disposal. Start with DG Update: Dispose, Finalization, and Resource Management for a complete discussion of the topic. Carefully implement the pattern. Here's the bug I had to deal with: protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { // dispose of managed objects // dispose of unmanaged resources } disposed = true; } } Both the managed objects ......

Posted On Sunday, May 4, 2008 11:52 AM

Copyright © David Douglass | Powered by: GeeksWithBlogs.net