Re: Memory management with arrays
Re: Memory management with arrays
- Subject: Re: Memory management with arrays
- From: Jacob Bandes-Storch <email@hidden>
- Date: Sat, 9 Feb 2008 22:12:15 -0800
I am retaining the array when I create it initially, and releasing it
on dealloc.
On Feb 9, 2008, at 10:10 PM, Jonathon Mah wrote:
Hi Jacob,
On 2008-02-10, at 14:18, Jacob Bandes-Storch wrote:
This should remove all the objects, and add a new one. Basically, I
want the old Bar instance gone, and the new one in the array.
However, when I do this, I get an EXC_BAD_ACCESS when it tries to -
removeAllObjects. What's the problem?
Without seeing more code, I'd guess that you're not retaining the
array.
Jonathon Mah
email@hidden
_______________________________________________
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