开发者

how to solve error for object double free set a breakpoint in malloc_error_break to debug

hi i am new to iphone. what i am doing is placing a button and while clicking the button it will display the image and i need to change the开发者_C百科 image for each button click for i am writing if loop like

if(counter[button.tag] = 2) { [images exchangeObjectAtIndex:0 withObjectAtIndex:1 ]; }

but images are not exchanged it shows like this in console

error for object double free set a breakpoint in malloc_error_break to debug

how can i solve this. i did n't understand what is this problem why it comes pls help me. thank u in advance.


Maybe you need to use the Zombie Instrument tool to check if a zombie object has been messaged. Go to File>New in Instruments and choose Zombie, then run you executable until it will crash. At that point the tool shall link to you the object involved and you will be able to have a look at its history.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜