Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memory leaks / finding object references



thanks anyway, i'll have a look at hprof, maybe it's already what i need(?). i just need to find out what are the possible places for references not being removed when an object is disposed.

stupid related question : the java collection classes probably all work with internal caches, so for example ArrayList (or HashMap or HashSet) will grow in steps and not on a per element base, and there's probably an array in the background. is it possible that after myArrayList.remove( anObject ) there is still some kind of reference to that object in myArrayList that would prevent the gc from disposing anObject ? (probably not, but i'm just curious)

ciao, -sciss-

Am 30.08.2006 um 16:30 schrieb Michael Hall:


On Aug 30, 2006, at 7:54 AM, Sciss wrote:


so are there any automatic ways for determining this (getting a list of references to object 'myDoc')?


Sorry, I didn't look at this closely enough. What I showed would confirm the Document class as involved in a memory leak and tell you where the instances are coming from but would not identify references. You used to be able to do that of sorts with the classical MacsBug dcmd. I haven't looked into anything recently to track down references so can't say if hprof or anything else provides anything or not that would help.


Again apologies for not reading closely enough before posting.


Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative

_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >memory leaks / finding object references (From: Sciss <email@hidden>)
 >Re: memory leaks / finding object references (From: Michael Hall <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.