• 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: Hanging after autorelease...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hanging after autorelease...


  • Subject: Re: Hanging after autorelease...
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 10 Apr 2007 15:05:31 -0400
  • Organization: Rogue Research

On 4/10/07 1:51 PM, Gerd Knops said:

>> Turn on zombies -- sounds an awful lot like you are over releasing
>> something and the second pass through the runloop is tripping over
>> a now-trashed object.
>
>Got the whole shebang:
>
>	NSZombieEnabled
>	MallocStackLogging
>	MallocStackLoggingNoCompact
>	NSDebugEnabled
>	NSAutoreleaseFreedObjectCheckEnabled
>	MallocScribble
>
>No help there...

That's not quite the whole shebang. :)  There's several more in fact.
Useful to you might include: MallocPreScribble, NSDeallocateZombies,
MallocGuardEdges, CFZombieLevel, MallocBadFreeAbort.

NSZombieEnabled does not apply to toll-free bridged objects, so you need
CFZombieLevel.

Also, beware MallocStackLogging, it is totally broken, and corrupts
memory if two threads are using malloc/free at the same time (can happen
even if your app is single threaded, for example if you have a default
button onscreen the OS creates a thread that calls malloc/free.)

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Follow-Ups:
    • Re: Hanging after autorelease...
      • From: Gerd Knops <email@hidden>
References: 
 >Hanging after autorelease... (From: Gerd Knops <email@hidden>)
 >Re: Hanging after autorelease... (From: Bill Bumgarner <email@hidden>)
 >Re: Hanging after autorelease... (From: Gerd Knops <email@hidden>)

  • Prev by Date: Re: Hanging after autorelease...
  • Next by Date: Value transformer in NSPredicate?
  • Previous by thread: Re: Hanging after autorelease...
  • Next by thread: Re: Hanging after autorelease...
  • Index(es):
    • Date
    • Thread