开发者

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开发者_StackOverflow中文版 run the malloc history.

Any advise is greatly appreciated!

Zhen Hoe


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).


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜