My iphone app gets memory warning and killed at 6.8MB

一笑奈何 提交于 2019-12-05 07:18:29

Maybe your memory is super-fragmented? Even 7mb full of leaked data shouldn't kill your app. You ought to have at least 20mb to play with. Try rebooting the phone and see if that helps.

I still do not know why it is happening, but now I have a found a workaround. Instead of running this job in a thread, if I run it on the main thread, neither I receive memory warning not it gets killed. But then I cannot show the progress in the UI. I am going to use NSTimer to do it.

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