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

后端 未结 13 969
情深已故
情深已故 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:35

    This is what the malloc_error_break breakpoint looks like in the Breakpoints window in Xcode. Need to check the boxes to make it work.

    alt text http://www.martijnthe.nl/wp-content/uploads/2009/08/Afbeelding-1.png

提交回复
热议问题