Sunday, November 8, 2009

Detect and avoid memory leaks in .NET

Sharing this great memory leak article on MSDN (Though I myself have to read it)
http://msdn.microsoft.com/en-us/library/ee658248.aspx

Namaste (Greetings)
| Anugrah Atreya

2 comments:

Sara Reid said...

Detection of Leak:
Even a little leak can bring down the system if it occurs many times. This is similar to what happens with leaking water. A drop of water is not a big issue. But drop by drop, a leak can become a major problem. As I will explain later, a single insignificant object can maintain a whole graph of heavy objects in memory.

Avoidance of Leak:
An object that creates another object is responsible for disposing it. Of course, this is not the case if the creator is a factory. The reverse: an object that receives a reference to another object is not responsible for disposing it. In fact, this really depends on the situation. In any case, what's important to keep in mind is who owns an object.

womens health

Anugrah A said...

Hey Sara, Thanks for your comments. I hope you find more useful things here on this blog of mine.

Anugrah