Browse by Tags
All Tags »
GC (
RSS)
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...
A question with two answers: No, and Occasionally. I received this question last week: I'm still working through and enjoying "Effective C#", unfortunately my job has really intruded for the past 2 months. I'm at Item 18: "Implement...
SQLConnection, for one, calls GC.SuppressFinalization() in its constructor. Why would you do that? A fried of mine asked about the practice of calling GC.SuppressFinalize() in a constructor. He noticed it in the SQLConnection constructor. It’s also...
Quote: "Why should a developer building "business solutions" ever care about closing a connection to a database, or even opening it?" Eugenio has an interesting take on IDisposable, or the needs for business developers to actually...
Always close files and streams Question : I read your article Manage C# Objects in Visual Studio magazine. I'm having a problem using the XmlDataDocument class and was wondering if you think this is a situation where I should use IDisposable as described...
Wasn't this supposed to be easier? Hi Bill I am an independent MSCD for Microsoft .NET, and I always enjoy your writing. Your article beautifully explains the Dispose application implementation pattern. However, there is one important aspect which...