Re: Problem with NSOperation exiting and crashing the app
Re: Problem with NSOperation exiting and crashing the app
- Subject: Re: Problem with NSOperation exiting and crashing the app
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 24 Jun 2011 19:53:26 -0600
On Jun 24, 2011, at 4:38 PM, Laurent Daudelin wrote:
> On Jun 24, 2011, at 15:31, Jens Alfke wrote:
>
>>
>> On Jun 24, 2011, at 3:27 PM, Laurent Daudelin wrote:
>>
>>> So, is there some way I could get more details from that mistake?
>>
>> Use NSZombieEnabled so you can find out what the over-released object is. (Look up the name in the Xcode docs or google it, if you’re not familiar with that feature.)
>>
>> —Jens
>
> Hey Jens.
>
> I forgot to mention that I did enable NSZombieEnabled with a bunch of breaks in .gdbinit:
>
> set env NSDeallocateZombies=NO
> set env MallocCheckHeapEach=100000
> set env MallocCheckHeapStart=100000
> set env MallocScribble=YES
> set env MallocGuardEdges=YES
> set env MallocCheckHeapAbort=1
> set env CFZombie 5
> fb -[_NSZombie init]
> fb -[_NSZombie retainCount]
> fb -[_NSZombie retain]
> fb -[_NSZombie release]
> fb -[_NSZombie autorelease]
> fb -[_NSZombie methodSignatureForSelector:]
> fb -[_NSZombie respondsToSelector:]
> fb -[_NSZombie forwardInvocation:]
> fb -[_NSZombie class]
> fb -[_NSZombie dealloc]
I don't see any NSZombieEnabled above, just a CFZombie. Try it again with NSZombieEnabled, or better yet, if you're using Snow Leopard or later, then use Instruments' zombie detection instrument.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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