Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSZombieEnabled does not work

When I set NSZombieEnabled = Yes nothing is written to the console. How can I fix this? Or can you advise me any other tools for an EXC_BAD_ACCESS?

like image 440
onur taskin Avatar asked Jan 06 '10 10:01

onur taskin


1 Answers

You have a plain old crash. EXC_BAD_ACCESS means that your application has tried to access a memory address that is invalid. While the most typical reason for this in a non-GC'd objective-c application is messaging an object after deallocation, something that Zombie Mode detects, this particular crash can happen any number of other ways (as demonstrated).

Since your application is crashing, you should have a backtrace. You need to post that backtrace here for any of us to be able to help you further.

As Brad said, run your application with debugging enabled. In Xcode, you'll find the "Run/Debug" menu item under the "Run" menu. Use that one. When your application crashes, you should see a stack trace in the upper left corner of the debugger window.

No, really, they do show up in the debugger. A picture is worth 1,000 words. alt text
(source: friday.com)

like image 99
bbum Avatar answered Nov 06 '22 19:11

bbum