Bill Blogs in C#

Bill Wagner discusses C#, LINQ, and other items of interest

Yet another good explanation on the pitfalls of Finalization

Brian Grunkmeyer has written a rather deep article for the BCL weblog that discusses many of the pitfalls that surround finalization, dispose, and weird things that can happen during the birth, death, and possible resurrection of an object:

 http://blogs.msdn.com/bclteam/archive/2007/10/30/dispose-pattern-and-object-lifetime-brian-grunkemeyer.aspx

 Some of the important points he covers:

. What happens if an object's constructor thorws an exception?

. What happens if an object's finalizer is called as part of an AppDomain unloading?

. Why should I care?

. What can I do to prevent exceptions and application terminations?

Published Fri, Nov 2 2007 7:35 AM by wwagner
Filed under: ,

Comments

# Web 2.0 - Social Media - Internet News - Blogging » Yet another good explanation on the pitfalls of Finalization@ Friday, November 02, 2007 8:31 AM

Pingback from  Web 2.0 - Social Media - Internet News - Blogging » Yet another good explanation on the pitfalls of Finalization