I’m using C#.
Is it possible to check how much memory each variable in my code has been using during the runtime?
I can’t get a clue as to which construct in my code has been using up memory which is ultimately leading my system to crash.
Thank You
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are several good memory profilers available such as ANTS Memory Profiler.
Alternatively you can use WinDbg + SOS. WinDbg is a free download from Microsoft and SOS is part of the .NET framework. Check Tess’ blog for how to debug memory issues with WinDbg + SOS.