Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用诺基亚 sdk2.0 和 lwuit1.5 开发诺基亚 asha s40。我的问题是,当我使用我的应用程序一段时间时,它会抛出内存不足错误的错误。所以请建议我如何管理运行时内存。当出现错误时,可用内存约为 3000-4000 字节,不足以执行任何操作。所以请建议我如何防止这个错误。这是我的应用程序中的大问题。
它会引发错误,因为您正在使用资源而不是释放它们。取消分配您当前未使用的资源,例如图像和对象。
示例:dealloc(){
标志Img=空; de allocate here 我的对象=空;}
de allocate here
希望这可以帮助你。