And yet, I have objects where I log the finalize call but find, when looking at the heap dump, those objects are gone even though I never received a finalize log for them. I also have custom ViewGroup objects where the memory analyzer tells me that the only references are from it's children, and yet these objects are never freed (this appears to be the source of my leak).
I am somewhat baffled as to what is going on here. Thanks for your help On Oct 18, 5:25 pm, Tom Gibara <[email protected]> wrote: > > It is possible that the finalize() has been called at much later point. > > I should have probably said that lack of finalize() does not mean that > > the memory has not been regained. > > This isn't correct. If an object is an instance of a class with a > non-trivial finalize method, then the object's memory cannot be reclaimed > until the finalizer has run. > > Tom. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

