Zhen
Zhen

Reputation: 12431

Objective C: How to check for Leaks or Bad Access Errors

Need some advise here. Can you recommend some tools or methods to detect memory leaks and more importantly check for 'EXC_BAD_ACCES' errors.

Is NSZombie recommended? I tried to use that was not able to run the malloc history.

Any advise is greatly appreciated!

Zhen Hoe

Upvotes: 2

Views: 2153

Answers (2)

rptwsthi
rptwsthi

Reputation: 10172

you can use "NSZombieEnabled" to track your EXC_BAD_ACCESS problem(it'll give you some details of badly accessed objects), how to use it?, and also refer this link(very consitently) Break on EXC_BAD_ACCESS in XCode?

Upvotes: 0

margusholland
margusholland

Reputation: 3348

For memory leaks, you can use Instruments, comes with the Developer tools. Also, you can use “Analyze” to get XCode to show you any possible leaks (Cmd-Shift-B).

Upvotes: 1

Related Questions