Windows memory leak detection tool
Windows memory leak detection tool
Under Windows, Visual Leak Detector tool is used in combination with VS to detect
the location of memory Leak quickly and conveniently.
The download is at http://vld.codeplex.com/
the location of memory Leak quickly and conveniently.
The download is at http://vld.codeplex.com/
Re: Windows memory leak detection tool
After the installation is complete, in Visual C++ IDE "tools"-->"options"-->"project and solutions"-->"VC++ directories",
"include files" increase VLD "\the include path", "libraries" increase VLD "\lib\Win32"path,
in addition dynamic libraries "\bin\Win32 path" has been added to the environment variables when installed inside,
if not add, you need to manually copy "\bin\Win32" file to the project under the Debug directory.
"include files" increase VLD "\the include path", "libraries" increase VLD "\lib\Win32"path,
in addition dynamic libraries "\bin\Win32 path" has been added to the environment variables when installed inside,
if not add, you need to manually copy "\bin\Win32" file to the project under the Debug directory.
Re: Windows memory leak detection tool
Create WIN32 project example:
# include "stdafx.h"
# include "VLD.h"
Int _tmain(int argc, _TCHAR* argv[])
{
Char *pBuf = new char[200];
Return 0;
}
# include "stdafx.h"
# include "VLD.h"
Int _tmain(int argc, _TCHAR* argv[])
{
Char *pBuf = new char[200];
Return 0;
}
Re: Windows memory leak detection tool
In addition, if you want to locate a memory leak in a dynamic library loaded by the main program,
you also need to add LIB and header files to the dynamic library.
you also need to add LIB and header files to the dynamic library.
Re: Windows memory leak detection tool
It's very useful.
We use it to dectection memory leak for JCIDE.
We use it to dectection memory leak for JCIDE.
well
Who is online
Users browsing this forum: No registered users and 53 guests