什么是 C/C++ 程序及其插件 DLL 的最佳空闲内存泄漏检测器?

2023-09-26C/C++开发问题
1

本文介绍了什么是 C/C++ 程序及其插件 DLL 的最佳空闲内存泄漏检测器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我有一个 .exe 和许多 .exe 加载的插件 .dll 模块.(我有两者的源代码.)跨平台(带源代码)解决方案是理想的,但平台可以缩小到 WinXP 和 Visual Studio(在我的情况下为 7.1/2003).

I have a .exe and many plug-in .dll modules that the .exe loads. (I have source for both.) A cross-platform (with source) solution would be ideal, but the platform can be narrowed to WinXP and Visual Studio (7.1/2003 in my case).

内置的 VS 泄漏检测器仅提供调用 new/malloc 的行,但我有一个用于分配的包装器,因此最好使用完整的符号堆栈跟踪.

The built-in VS leak detector only gives the line where new/malloc was called from, but I have a wrapper for allocations, so a full symbolic stack trace would be best.

检测器还能够检测 .exe 及其附带的插件 .dll 模块中的泄漏.

The detector would also be able to detect for a leak in both the .exe and its accompanying plug-in .dll modules.

推荐答案

我个人使用 Visual Leak Detector,不过当大块泄漏时,它会导致很大的延迟(它显示整个泄漏块的内容).

I personally use Visual Leak Detector, though it can cause large delays when large blocks are leaked (it displays the contents of the entire leaked block).

这篇关于什么是 C/C++ 程序及其插件 DLL 的最佳空闲内存泄漏检测器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

无法访问 C++ std::set 中对象的非常量成员函数
Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)...
2024-08-14 C/C++开发问题
17

从 lambda 构造 std::function 参数
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)...
2024-08-14 C/C++开发问题
25

STL BigInt 类实现
STL BigInt class implementation(STL BigInt 类实现)...
2024-08-14 C/C++开发问题
3

使用 std::atomic 和 std::condition_variable 同步不可靠
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)...
2024-08-14 C/C++开发问题
17

在 STL 中将列表元素移动到末尾
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)...
2024-08-14 C/C++开发问题
9

为什么禁止对存储在 STL 容器中的类重载 operator&()?
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)...
2024-08-14 C/C++开发问题
6