Re: Delayed Autorelease
Re: Delayed Autorelease
- Subject: Re: Delayed Autorelease
- From: Joar Wingfors <email@hidden>
- Date: Thu, 8 Apr 2010 08:14:30 -0700
On 8 apr 2010, at 08.03, Patrick M. Rutkowski wrote:
> I have a Foo object which has an NSMutableArray of Bar objects. The
> Bar objects each have their own NSMutableArray of Baz objects.
>
> The weird thing is that the Foo and it's array of Bar's are all living
> well and good, but the Bar's are all getting dealloc'd, even though
> their containing parent are still alive.
>
> Still digging into it; not quite sure that you guys would even have
> any advice to offer here, I think I'm on my own :-/
If you can reproduce the problem you can use the ObjectAlloc instrumentation in Instruments to track down the issue. It allows you to track all memory management events (alloc, retain, release, autorelease, etc.) in your application, so that you can figure out where your objects are being mismanaged.
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden