Re: FREED message is crashing my program
Re: FREED message is crashing my program
- Subject: Re: FREED message is crashing my program
- From: Kyle Sluder <email@hidden>
- Date: Wed, 19 Aug 2009 09:01:13 -0700
On Wed, Aug 19, 2009 at 8:48 AM, Bill Bumgarner<email@hidden> wrote:
> Turn on NSZombie mode.
More clarification, since from your confusion it sounds like you might
not know what this means:
"NSZombie mode" means that whenever an object's retain count drops to
zero, instead of freeing the memory held by that object, the system
will instead swap in an NSZombie object in its place. The effect of
this is that instead of getting a crash when you over-release or send
messages to dead objects, you get a nice little warning in the
console. If you run your app in Instruments with the ObjectAlloc
tool, you can go backwards in your app's allocation history to find
out just what object it is that's getting over-released. Corbin Dunn
has more information on doing this in Leopard:
http://www.corbinstreehouse.com/blog/index.php/2007/10/instruments-on-leopard-how-to-debug-those-random-crashes-in-your-cocoa-app/
--Kyle Sluder
_______________________________________________
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