Some of my objects are not being garbage collected, I need to find out where the references to the object are and what is preventing the garbage collection.
I’m using Visual Studio Express.
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.
You could try using Ants Memory Profiler which is a very popular tool. It’s fairly easy to use and it attempts to give you a graph illustrating what is holding on to your references. Underneath I believe it does something similar to that which Bond suggested, but it gives a much simpler user experience.
It comes with a free 14 day trial. An example of the instance graph is shown below: