Thursday, March 3, 2011

Xcode Program received signal: “EXC_BAD_ACCESS”

Your Ad Here

Program received signal: “EXC_BAD_ACCESS”

This error occurs in device not simulator.

Possible Errors:
  • access protected or non-existent memory space as result of a bad pointer
  • access memory without alloc init
  • access memory after released object
  • remove the [object release] only if you don’t use alloc/copy/retain
  • trying to access release objects
  • illegal memory access
This show you how to use Cocoa’s NSZombie debugging class and the command line “malloc_history” tool to find exactly what released object has been accessed in you code.
Running Instruments and checking for leaks will not help troubleshoot EXEC_BAD_ACCESS.

Debugging Techniques

NSAssert() call to validate method parameters is to track and avoid passing nils set a breakpoint on objc_exception_throw.

No comments:

Post a Comment

Submit Express Inc.Search Engine Optimization Services