On Aug 19, 2011, at 2:40 AM, jonat...@mugginsoft.com wrote: > I don't use NSCache but I have used instruments to effectively debug GC > memory collection problems. > The described rooting behaviour of NSCache sounds peculiar to me.
I just reproduced the problem in another project, so this is probably a GC bug unless someone else knows what's going on. I've filed a bug report. > What happens if you call -removeAllObjects. Are the cached objects finalised > correctly? > I know this isn't the same as collecting the NSCache instance but at least, > as a workaround if the issue persists, you can recycle the NSCache instances. Yes, they are finalized if the code calls -removeAllObjects instead of removing the dictionary. I guess that'll have to do for now. Nick Zitzmann <http://www.chronosnet.com/> _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com