• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FREED message is crashing my program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >FREED message is crashing my program (From: Korei Klein <email@hidden>)
 >Re: FREED message is crashing my program (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Get size of folder
  • Next by Date: Re: FYI - new debug & profile libraries are out
  • Previous by thread: Re: FREED message is crashing my program
  • Next by thread: NSFetchedResultsController with custom NSSortDescriptor
  • Index(es):
    • Date
    • Thread