Debugging over-released objects, problem with NSZombie

Posted by hyn on Stack Overflow See other posts from Stack Overflow or by hyn
Published on 2011-01-31T06:18:45Z Indexed on 2011/01/31 7:26 UTC
Read the original article Hit count: 276

Filed under:
|
|
|

I have a reproduceable EXC_BAD_ACCESS during NSAutoreleasePool -drain, which seems to indicate that I am over-releasing an object. So I enable NSZombie, but then the program does not crash any more. Nor do I get any info logged to the console. If I turn NSZombie off, the crash comes back. What is the meaning of this? I thought NSZombies were used to tackle exactly this kind of problem. If NSZombie won't help, is there another way to interrogate this over-released object?

Also the crash is not reproduceable on Simulator, which is why I can't use Instruments with NSZombie.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xcode