如何调试在Windows Phone运行内存 [英] How to debug running out of memory on Windows Phone

查看:154
本文介绍了如何调试在Windows Phone运行内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在在C#中的WP8图像处理应用程序,和我有一些内存的问题。

I am making a WP8 image processing app in c#, and am having some memory issues.

如果我导航到应用程序走,导航回一堆有时,我会用尽内存(如:首页 - >回 - >主页 - >回...)。

If I navigate away from the app, and navigate back a bunch of times, I run out of memory (eg. Home -> back -> home -> back...).

我想知道如何调试这个问题?我想,我可以(用物/设置的东西为null),以尽可能多的清理内存,但它不工作。

I was wondering how to debug this issue? I am trying to clean up memory as much as I can (using Dispose/setting things to null), but it isn't working.

我将如何调试它?有没有办法找出如何内存被使用是什么?

How would I debug it? Is there a way to find out how the memory is being used by what?

推荐答案

检查从这个问题的答案:

Check the answer from this question:

Windows Phone的内存分析器

在Windows Phone SDK附带了两个内存
消耗一个分析器,和其他的东西,这是在
安装SDK后,Visual Studio中可用。

The Windows Phone SDK comes with a profiler for both memory consumption, and other things, that's available in Visual Studio after installation of the SDK.

或者,这里有一个直接链接到MSDN文章:

Or, here's a direct link to the MSDN article:

http://msdn.microsoft.com/en-us/library/hh202934%28v=vs.92 %29.aspx

更新:

它看起来像这个问题是针对WP7,因此它可能或可能不适用。然而,我发现它适用于WP8和WP7的文章:

It looks like that question was targeted for WP7, so it may or may not be applicable. However, I found an article which applies to both WP8 and WP7:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202934(v = vs.105)。 ASPX

这篇关于如何调试在Windows Phone运行内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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