How to find the cause of a malloc “double free” error?

后端 未结 13 932
情深已故
情深已故 2020-11-27 09:51

I\'m programming an application in Objective-C and I\'m getting this error:

MyApp(2121,0xb0185000) malloc: *** error for object 0x1068310: double

13条回答
  •  借酒劲吻你
    2020-11-27 10:42

    If malloc_error_break is not helping...

    The best way to solve this error is to run instruments with the NSZombies turned on. Instruments will flag you when the Zombie is messaged and you can trace directly back to the line of code.

    Snow Leopard required, what a lifesaver though!

提交回复
热议问题