I am looking for memory leaks in my application and the profiler I am using tells me to look for these types of references but I don’t know what I’m looking for. Can some one please explain this?
Thanks,
Elliott
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 can have synthetic back reference to an OUTER class, but not inner class instances.
e.g.
In this example, Inner has a reference to the Outer class. Nested does not. If Outer is large this can mean you have can be holding onto an object you don’t need.
In short, make inner classes
staticif you can.