Re: Hanging after autorelease...
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