Merory Leak; Objects do not have a GC root

I am trying to solve a memory leak problem in my application. Using the Eclipse Memory Analyzer. My application crashes after some time due to an OOM error.

The biggest suspects seem to be the 9 ViewFlippers that I use. the inspector, looking at them in the analyzer, says that he does not have a GC root.

Does this mean that it will not be cleaned by the garbage collector? if so, how would I decide to solve it ... Manually clean them? Or better, how would I include it in the GC root?

Im pretty new when analyzing memory, so some tips can be used.

+4
source share
1 answer

Actually the opposite is true: "No GC root found" means that the object is no longer referenced, so the garbage collector will clear it next time.

Check out this great video, it explains how to find memory leaks:

http://www.youtube.com/watch?v=_CruQY55HOk

+4
source

All Articles