从移动设备RAM中删除内存 [英] Removing Memory from Mobile Device RAM

查看:93
本文介绍了从移动设备RAM中删除内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.

我在带有WM 6.1的移动设备上有一个应用程序.我的RAM用完了.

我的应用程序一次只能打开一个表单,因此我要做的是将其设置为当用户单击表单末尾的提交"按钮时,该表单已关闭并已从设备RAM中完全删除.有谁知道执行此操作的代码.

请让我知道.

谢谢.
Kate

Hi.

I have an application on a mobile device with WM 6.1. I am running out of RAM.

My app only has one form open at a time, so what I am trying to do is make it so that when the user clicks the submit button at the end of a form that form is closed and completely removed out of the devices RAM. Does anyone know the code to do this.

Please let me know.

Thanks.
Kate

推荐答案

没有从RAM中删除".表单关闭并释放对它的引用后,垃圾收集器将执行其工作并将使用的内存释放回托管堆.你什么都不需要做.

使用Form.ShowDialog的一个常见问题是,人们有时会忘记必须在表单对象上调用Dispose.

如果窗体显示为Form.Show,则无需执行此操作.
There is no "removing it from RAM". Once the form has been closed and references to it released, the Garbage Collector will do its job and release the memory it''s using back to the managed heap. You don''t need to do anything.

A common problem with using Form.ShowDialog is that people sometimes forget they have to call Dispose on the form object.

You do not need to do this if the form is shown with Form.Show.


确定.因此,我的设备会继续随机关闭程序,并在测试后显示,只要设备关闭程序,RAM就会接近满.因此,基本上没有什么办法可以释放RAM?

谢谢.
凯特(Kate)
Ok. So my device keeps closing my program randomly and after testing it showed that the RAM was close to full whenever the device closed the program. So basically there is nothing that I can do to free up that RAM?

Thanks.
Kate


这篇关于从移动设备RAM中删除内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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