简体   繁体   English

WPF查找资源和内存泄漏

[英]WPF finding resource and memory leaks

Does anyone have some suggestions for issolating resource and/or memory leaks in a WPF application? 有没有人建议隔离WPF应用程序中的资源和/或内存泄漏?

I have verified that there does appears to be some significant leaks in our application through the monitoring of heap sizes in Task Manager while using the application. 我已经验证了使用应用程序时通过在任务管理器中监视堆大小,我们的应用程序中确实存在一些重大泄漏。 I did download the evaluation of the Memory Profiler tool, played with it for an hour or so and moved on. 我确实下载了Memory Profiler工具的评估版,并使用了一个小时左右,然后继续进行。 Now my evaluation period has expired. 现在我的评估期已经到期。 While using it many issues were reported, but I had not invested the time to wade through all of the verbose report. 在使用它时,报告了许多问题,但是我没有花时间去研究所有详细的报告。

What is the best tool for this? 最好的工具是什么? Should I invest the time and money on Memory Profiler or go with something else. 我应该把时间和金钱花在Memory Profiler还是其他方面。 I used to use BoundsChecker in C++ and it was great, slowed down the application a lot but pinpointed right where you had an issue. 我曾经在C ++中使用BoundsChecker,这很棒,虽然减慢了应用程序的速度,但是却指出了问题所在。

I would like a tool to identify the source of our leaks. 我想要一个工具来确定泄漏源。

Any .net memory profiling tool would do. 任何.net内存分析工具都可以。 For WPF specific memory profiling we used http://msdn.microsoft.com/en-us/library/aa969767.aspx . 对于WPF特定的内存配置文件,我们使用了http://msdn.microsoft.com/en-us/library/aa969767.aspx

But we could also do better memory profiling of our WPF application using WinDbg .... even SOS helps. 但是,我们也可以使用WinDbg ...对WPF应用程序进行更好的内存配置分析,甚至SOS可以。 You just need to have a way to understand its commands. 您只需要一种方法来了解其命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM