如何查找非托管内存泄漏 [英] How to find unmanaged memory leaks

查看:90
本文介绍了如何查找非托管内存泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#应用程序中使用com接口对象.
如何释放C#中com组件分配的内存.
如何识别C#应用程序中的非托管内存泄漏.
建议工具.

I am using a com interface object in my C# application.
How to release the memory allocated by com component in C#.
How to identify unmanaged memory leaks in C# application.
Suggest tool.

推荐答案

有几种不错的工具可用于查看内存中正在发生的事情.最好的方法之一是 Windows调试工具 [ DotTrace [ ^ ]也是一个很好的工具,我听说过有关 ANTS Profiler [ CLR [ ^ ]可以更好地理解发生在内存中.
There are several good tools out there for looking at what is happening in memory. One of the best is Debugging Tools for Windows[^], DotTrace[^] is also an excellent tool, I have heard good thing about the ANTS Profiler[^] as well. Also I would reccommend that you read CLR via C#[^] to better understand what is happening with memory.


最后一个问题,

ANTS Memory Profiler
For your last question,

ANTS Memory Profiler


Deleaker-我认为可以在您的情况下使用它.
Deleaker - I think that it can be used in your case.


这篇关于如何查找非托管内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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