CLR Inside Out: Managing .NET object lifetime

Although the .NET Framework provides a managed execution environment, it is important to use resources carefully and consider whether you need to proactively manage the lifetime of any objects created by your code.

In the November issue of MSDN Magazine, Tim Fischer explains how developers can better understand lifetime management for .NET or COM classes they are consuming, recognize situations where you can run into resource traps, and know how to solve these issues.

Tim takes a look at garbage collection and efficient finalization in the CLR, along with lifetime management of COM objects and reference counting.

For more inside information about .NET and CLR programming directly from the developers at Microsoft, check out the past CLR Inside Out columns in the MSDN Magazine archives, or subscribe to the RSS feed for notification of new columns as they are published.

 

Technorati Tags: .NET, CLR, COM, object lifetime