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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Mar 6, 2012, 1:59 AM
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.
SIVAPosted Mar 5, 2012, 7:02 AM
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