finding reason for EXC_BAD_ACCESS - in Xcode4

后端 未结 1 1992
天涯浪人
天涯浪人 2020-12-11 12:34

I get an EXC_BAD_ACCESS error at a place that doesn\'t have anything to do with the root cause. I fortunately found the reason to be an array that was too small

相关标签:
1条回答
  • 2020-12-11 13:14

    It's quite likely that the place you get the EXC_BAD_ACCESS will not be related to the root cause. It could be related and could therefore offer a clue. But that's not certain.

    To answer your points:

    1. NSZombiesEnabled will only have an effect if you invoke a method on an object that has been deallocated. That might not be the cause of your EXC_BAD_ACCESS.

    2. Using Instruments is separate to the debugger. If you profile in Instruments, the debugger is not active. Basically, it's a different tool.

    3. This should be ok. Check that your Build Configuration is set to "Debug" and not "Release".

    Here's a great link on what causes EXC_BAD_ACCESS and how to track down the root problem:

    Lou Franco's Understanding EXC_BAD_ACCESS

    0 讨论(0)
提交回复
热议问题