应用程序将无法在256 MB Windows Phone 7.1模拟器上运行 [英] App won't run on 256 MB Windows Phone 7.1 emulator

查看:62
本文介绍了应用程序将无法在256 MB Windows Phone 7.1模拟器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Microsoft.Bcl.Async的Windows Phone 7应用程序。  我提到这是因为该库需要Windows 7.5或更高版本。  应用程序在其他模拟器上运行良好,但在256MB 7.1模拟器上,它在尝试构建
启动时的主要 实用程序类之一时失败。  我收到了System.MethodAccessException。  在测试工具包应用程序分析运行期间,该应用程序从不使用超过60MB。

I have a Windows Phone 7 application that uses Microsoft.Bcl.Async.  I'm mentioning that because that library requires Windows 7.5 or higher.  The app runs fine on the other emulators but on the 256MB 7.1 emulator it fails when trying to construct one of the main utility classes on start-up.  I am getting a System.MethodAccessException.  During a Test Kit application analysis run, the app never uses more than 60MB.

任何人都可以告诉我为什么以及我能做些什么呢?   以下是例外详细信息的屏幕截图:

Can anyone tell me why and what I can do about this?  Below is a screenshot of the Exception detail:




- roschler

-- roschler

推荐答案

看起来构造函数失败了,建议确实是内存不足的故障。

It looks like a constructor is failing, suggesting indeed an out-of-memory failure.

您可以将以下内容嵌入代码中以监控应用的内存使用情况:

You can embed the following into your code to monitor memory usage of your app:

Microsoft.Phone.Info.DeviceStatus.ApplicationCurrentMemoryUsage

您可以改进应用程序创建和销毁大内存对象的方式。

You might be able to improve the way your app creates and destroys large memory objects.

希望这会有所帮助,

Mark


这篇关于应用程序将无法在256 MB Windows Phone 7.1模拟器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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