Re: Memory management with arrays
Re: Memory management with arrays
- Subject: Re: Memory management with arrays
- From: Adhamh Findlay <email@hidden>
- Date: Sun, 10 Feb 2008 12:23:32 -0600
I put some useful breakpoints on http://www.cocoadev.com/index.pl?NSZombieEnabled
. I found these scattered about the web and collected them onto the
page.
On Feb 10, 2008, at 11:39 AM, Bill Bumgarner wrote:
On Feb 10, 2008, at 5:36 AM, Scott Andrew wrote:
True.. (late night). So basically. Put a break in bar's dealloc.
See were the extra dealloc is cooming from.
Scott
There won't be an "extra dealloc" -- once dealloc'd, the object is
dead. There is an extra -release coming first, but breaking on -
release won't help, either as the object is dead by the time it
happens.
As I said, run the app with "-NSZombieEnabled YES". This will
cause a proxy to be dropped into memory in place of every dealloc'd
object and said proxy will warn when messaged (because it should
never be messaged).
b.bum
_______________________________________________
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
_______________________________________________
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