Is there a way in .net 2005 ide to find out the memory usage by variables inside a function and when their memory is made free by garbage collector.
Share
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.
For the first part of your question:
You can use a number of tools to profile the memory foot print of your application – down to individual lines of code. I can recommend the following tools:
For second part: GC in .net is not deterministic. It is called automatically when there is no free memory for the application. There is no tool which will tell you when GC has released memory back to free store.