Click here to Skip to main content
15,921,837 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I would like to ask how to locate a memory leak
Posted
Comments
Sergey Alexandrovich Kryukov 6-May-14 2:38am    
It's pretty hard. It's easier to prevent it theoretically analyzing your code design. Why are you asking about it? Any memory leak problems so far? In .NET, preventing memory leaks is much easier...
—SA
[no name] 6-May-14 6:49am    
You would have to first determine that you have a memory leak. I strongly doubt that you actually do.

1 solution

Its typically a knife and fork job , going through things methodically .
Useful articles :- Best Practices No. 5: Detecting .NET application memory leaks[^]
Memory Leak Detection in .NET[^]
http://social.msdn.microsoft.com/Forums/en-US/e5bde357-87c9-470d-a8fb-9b3c362beb13/tool-for-memory-leak-detection-in-c-net-cf-application-deployed-on-wince-device?forum=netfxcompact[^]

Typically I use perfmon to try and see if I have a leak . It stops you looking at the detail too early . Once you know you have a leak then the above articles will help you trace . Its typically a long winded process . In the past I have had most of my memory leaks around talking to unmanaged code , but not all .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900