用于 64 位 Windows 的 LeakDiag?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1671762/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 13:22:59  来源:igfitidea点击:

LeakDiag for 64-bit Windows?

windowsmemoryleakdiag

提问by noctonura

Has anyone been successful using LeakDiag to track memory allocation on 64-bit Windows? Or, do you know of another free tool to replace LeakDiag for 64-bit?

有没有人成功地使用 LeakDiag 跟踪 64 位 Windows 上的内存分配?或者,您是否知道另一种免费工具可以替代 64 位的 LeakDiag?

回答by C Johnson

I have tried visual leak detector

我试过目视检漏仪

http://vld.codeplex.com/

http://vld.codeplex.com/

and it works quite well. It has a few quirks but it works quite nicely in my big application here at work (Managed C/C++).

它运作良好。它有一些怪癖,但在我正在工作的大型应用程序(托管 C/C++)中运行良好。

I also second UMDH, but the book Advanced Windows Debugging says that UMDH has limitations in that it can only detect leaks using the Windows Heap Manager, and that the C Runtime is "not tracked very well...".

我也是第二个 UMDH,但是高级 Windows 调试一书说 UMDH 有局限性,因为它只能使用 Windows 堆管理器检测泄漏,并且 C 运行时“没有很好地跟踪......”。

I've tried LeakDiag an obscure, forgotten tool, available in a dusty corner of a forgotten FTP site on microsoft. It is also described in the book Advanced Windows Debugging, however, the tool doesn't work very well at all. I consider it worthless for a 64 bit app that has Native and Managed C++ in it.

我试过 LeakDiag 一个不起眼的、被遗忘的工具,可以在微软被遗忘的 FTP 站点的一个尘土飞扬的角落里找到。它也在 Advanced Windows Debugging 一书中有所描述,但是,该工具根本不能很好地工作。我认为对于一个包含原生和托管 C++ 的 64 位应用程序来说它毫无价值。

回答by Peon the Great

I know one powerful and free. UMDH in Debuggins Tools for Windows. See http://support.microsoft.com/kb/268343for introductions and usage.

我知道一个强大而自由的。Windows 调试工具中的 UMDH。有关介绍和用法,请参阅http://support.microsoft.com/kb/268343

Unfortunately it does not have the nice GUI as LeakDiag.

不幸的是,它没有 LeakDiag 那样漂亮的 GUI。