使用DebugDiag资料和LeakTrack Windows应用商店的应用程序故障排除本机内存泄漏 [英] Troubleshooting native memory leaks in Windows Store applications using DebugDiag and LeakTrack

查看:1577
本文介绍了使用DebugDiag资料和LeakTrack Windows应用商店的应用程序故障排除本机内存泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该方案是pretty简单:

The scenario is pretty simple:

我在使用dotMemory探查后,在Windows Store应用中的内存泄漏,确定为本地人。由于此工具仅限于分析托管内存我通过利用DebugDiag资料内存转储分析做进一步的研究。
这让我一步,我可以发现,增加内存致力于通过mscoreei使用的堆(任何人有这个DLL的其他信息?一个简单的谷歌搜索没有太大返回)

I have a memory leak in a Windows Store App, identified as native after using dotMemory profiler. Since this tool is limited to analyzing managed memory I did further research by performing a memory dump analysis using DebugDiag. This got me one step further and I could find that the increasing memory is committed to a heap used by mscoreei (anyone has additional info about this dll? A simple google search does not return much)

DebugDiag资料也有被称为内存泄漏分析女巫的注入到LeakTrack.dll正在运行的进程,以收集有关内存分配,这反过来可能有助于确定哪些管理code部分使用本机泄漏信息资源的一个很好的功能。不过,我得到一个错误,当我尝试用这个在我的Windows Store应用

DebugDiag also has a nice feature called Memory Leak analysis witch injects the LeakTrack.dll into a running process to collect information about memory allocation, which in turn potentially can help identify which parts of managed code use the native leaking resource. However, I am getting an error when I try use this on my Windows Store App

无法监控过程泄漏....请确保每个人都有读取和执行权限... \\ LeakTrack.dll

我没有修改权限到文件,以便每个人都有完全访问权限,但仍是同样的错误。

I did modify the permissions to that file so everyone has full access, but still the same error.

我的问题是:

我如何使用LeakTrack在Windows商店应用?

How can I use LeakTrack on a Windows Store Apps?

什么是最好的/替代的方法来在Windows应用商店的应用程序进行本机内存泄漏?

What is the the best/alternative approach to perform native memory leaks in Windows Store Apps?

推荐答案

我们通过给当前登录的用户(实际上是组他所属)的调试程序权限。解决了这个

We solved this by giving the currently logged on user (actually the group to which he belonged) the 'Debug Programs' permission.

下面是关于如何做到这一点说明:

Here are instructions on how to do this:

要访问本地组策略:


  1. 从开始菜单中选择控制面板。

  2. 在控制面板,双击管理工具。

  3. 在管理工具窗口,双击本地安全策略。

  4. 在本地安全设置窗口中,展开本地策略文件夹。

  5. 单击用户权利指派。

  6. 在策略列中,双击调试程序在本地安全策略来查看当前的本地组策略分配设置对话框。

  7. 要添加新用户,单击添加用户或组按钮。

这篇关于使用DebugDiag资料和LeakTrack Windows应用商店的应用程序故障排除本机内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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