使用Visual Studio在C ++应用程序中查找内存泄漏

时间:2022-09-25 00:37:33

In Linux, I have been using valgrind for checking if there are memory leaks in an application. What is the equivalent in Windows? Can this be done with Visual Studio 2010?

在Linux中,我一直在使用valgrind来检查应用程序中是否存在内存泄漏。 Windows中的等价物是什么?可以使用Visual Studio 2010完成吗?

4 个解决方案

#1


23  

Visual Studio assists you in finding memory leaks. This link should be helpful.

Visual Studio可帮助您查找内存泄漏。这个链接应该会有所帮助。

#2


8  

How about Visual Leak Detector? It's not inbuild, but I do think it's the most popular one.

视觉检漏仪怎么样?它不是内置的,但我认为它是最受欢迎的。

#3


2  

C++ Memory Validator finds memory and handle leaks in native Windows programs built with Visual Studio, Delphi and other compilers. Fast and can handle large workloads (some users track several billion allocations and deallocations in one run).

C ++ Memory Validator在使用Visual Studio,Delphi和其他编译器构建的本机Windows程序中查找内存并处理泄漏。快速且可以处理大型工作负载(一些用户在一次运行中跟踪数十亿次分配和解除分配)。

Disclosure: I'm the designer of C++ Memory Validator. We built it because other tools couldn't handle the workload when we were working with SolidWorks R&D Ltd.

披露:我是C ++ Memory Validator的设计者。我们构建它是因为当我们使用SolidWorks R&D Ltd.时,其他工具无法处理工作量。

#4


0  

You can use DevPartner tool for finding memory leaks in C++ applications using visual studio.

您可以使用DevPartner工具在Visual Studio中查找C ++应用程序中的内存泄漏。

#1


23  

Visual Studio assists you in finding memory leaks. This link should be helpful.

Visual Studio可帮助您查找内存泄漏。这个链接应该会有所帮助。

#2


8  

How about Visual Leak Detector? It's not inbuild, but I do think it's the most popular one.

视觉检漏仪怎么样?它不是内置的,但我认为它是最受欢迎的。

#3


2  

C++ Memory Validator finds memory and handle leaks in native Windows programs built with Visual Studio, Delphi and other compilers. Fast and can handle large workloads (some users track several billion allocations and deallocations in one run).

C ++ Memory Validator在使用Visual Studio,Delphi和其他编译器构建的本机Windows程序中查找内存并处理泄漏。快速且可以处理大型工作负载(一些用户在一次运行中跟踪数十亿次分配和解除分配)。

Disclosure: I'm the designer of C++ Memory Validator. We built it because other tools couldn't handle the workload when we were working with SolidWorks R&D Ltd.

披露:我是C ++ Memory Validator的设计者。我们构建它是因为当我们使用SolidWorks R&D Ltd.时,其他工具无法处理工作量。

#4


0  

You can use DevPartner tool for finding memory leaks in C++ applications using visual studio.

您可以使用DevPartner工具在Visual Studio中查找C ++应用程序中的内存泄漏。