2011年9月30日

Silverlight内存释放的方法

摘要: 一、 脚本释放内存的方法<script type="text/javascript"> function intervalFlushMemory() { setInterval(FlushMemory, 60000); } function FlushMemory() { min.Click(); window.focus(); }</script><body onload="intervalFlushMemory();"> <object id="min" type="data:a 阅读全文

posted @ 2011-09-30 16:38 chuncn 阅读(2031) 评论(0) 推荐(0) 编辑

WP7实时监控内存-转

摘要: 一、第一种方法: Windows phone7提供的DeviceExtendedProperties可用于取得内存使用情况。app.xaml.cs: System.Windows.Threading.DispatcherTimer timer = new System.Windows.Threading.DispatcherTimer(); //设置每间隔一段时间输出内存占用值到控制台 private void timer_Tick(object sender, EventArgs e) { //GC.GetTotalMemory(true); long deviceTotalMemor... 阅读全文

posted @ 2011-09-30 10:33 chuncn 阅读(958) 评论(0) 推荐(0) 编辑

导航