我的iphone应用程序获得内存警告,并以6.8MB杀死 [英] My iphone app gets memory warning and killed at 6.8MB

查看:196
本文介绍了我的iphone应用程序获得内存警告,并以6.8MB杀死的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序有一个线程,耗时工作超过一分钟,该应用程序消耗大约6.8MB的内存。我会在一段时间后收到内存警告,然后它就会被杀死。我没有什么可以释放的,我甚至没有使用7MB的内存......让我发疯了......请问有什么建议吗?

My app has a thread that does some time consuming job for more than a minute and the app consumes around 6.8MB of memory. I receive a memory warning after sometime and then it gets killed. There is nothing that I can release, and I am using not even 7MB of memory...driving me crazy...any advice please?

推荐答案

也许你的记忆是超级碎片?即使是7mb充满泄露的数据也不应该杀死你的应用。你应该至少有20mb可以玩。尝试重新启动手机,看看是否有帮助。

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.

这篇关于我的iphone应用程序获得内存警告,并以6.8MB杀死的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆