Hi....
I want to know about concept of memory leak in .net ? Please explain in details the memory leak concept ?
Thanks..........
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SIVARank #2,303 · 613 reputationPosted Mar 5, 2012, 2:02 AM EST
Actually Memory Leak occurs when memory allocated for a program and it ll nerver returned to your operating system.
Please go through the following links and you will get clear picture about it
http://www.dotnetfunda.com/articles/article625-best-practices-no-5-detecting-net-application-memory-leaks.aspx
http://support.microsoft.com/kb/318263
http://www.codeproject.com/Articles/19490/Memory-Leak-Detection-in-NET
http://memprofiler.com/
http://forums.whirlpool.net.au/archive/816232
Sam HobbsRank #107 · 20.5K reputationPosted Mar 5, 2012, 8:59 PM EST
A memory leak is much more likely to occur when unmanaged objects are used. Most of the software developed by Microsoft is written well enough that even unmanaged objects in software developed by Microsoft are not likely to leak. If .Net programs use unmanaged code written by someone that is not experienced enough or not careful enough, then memory leaks are more of a possibility.
For C++ programmers developing unmanaged code, Visual Studio will tell them if there are any memory leaks when a debug build of the program is run by the debugger. A sloppy or inexperienced programmer might turn of the reports and ignore memory leaks but otherwise C++ programmers are quickly informed of the probem when it happens.
There ae no easy answers. I guarantee you that you will not get a detailed explanation of memory leaks in reply to your question. You need to look for relevant articles and books. The details are available in resources such as that. Unless you invest some time to learn the details, you can quickly get confused about what memory leaks are and what to do about them.