Crash on download asynchronous images in iphone dev

北战南征 提交于 2020-01-25 07:09:08

问题


I am using this link for downloading asynchronously images and display them onto my table view and at the same time i use same asynchronous class onto my next view but when dealloc is called of last time used asynchronous class then my application is crash. Someone please help me on that, thanks in advance.


回答1:


You sent a method to a released object. You can find it out by yourself.
Please turn on malloc stack and zombie for your scheme in XCode:

Product -> Edit Scheme -> Diagnostics
check 'Enable Zombie Objects' & 'Malloc Stack'

Then run the app, XCode should enter the debugger mode after crash. Run the command below at the console:

info malloc 0x1234567

And you'll find which object cause this EXC_BAD_ACCESS in your console.



来源:https://stackoverflow.com/questions/8441390/crash-on-download-asynchronous-images-in-iphone-dev

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!