Saturday, 28 February 2009

Memory managment in c#

Garbage Collection is the backbone of memory managment . In short, GC Consists of the following steps:

  1. The GC searches for managed objects that are referenced in managed code.
  2. The GC attempts to finalize objects that are not referenced.
  3. The GC frees objects that are not refernced and reclaim memory from them.

This is a fantastic blog on using finalize and and dispose method in C#

http://www.devx.com/dotnet/Article/33167/0/page/1.

No comments:

Post a Comment