The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

Windows memory leak detection tool

Other Tools
youyou
Posts: 55
Joined: Fri Jul 06, 2018 3:42 am
Points :382
Contact:

Windows memory leak detection tool

Post by youyou » Tue Jan 22, 2019 4:25 am

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/

youyou
Posts: 55
Joined: Fri Jul 06, 2018 3:42 am
Points :382
Contact:

Re: Windows memory leak detection tool

Post by youyou » Tue Jan 22, 2019 4:25 am

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.

youyou
Posts: 55
Joined: Fri Jul 06, 2018 3:42 am
Points :382
Contact:

Re: Windows memory leak detection tool

Post by youyou » Tue Jan 22, 2019 4:25 am

Create WIN32 project example:

# include "stdafx.h"

# include "VLD.h"

Int _tmain(int argc, _TCHAR* argv[])
{
Char *pBuf = new char[200];
Return 0;
}

youyou
Posts: 55
Joined: Fri Jul 06, 2018 3:42 am
Points :382
Contact:

Re: Windows memory leak detection tool

Post by youyou » Tue Jan 22, 2019 4:26 am

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.

kuafu
Posts: 162
Joined: Thu Jun 25, 2015 2:09 am
Points :1759
Contact:

Re: Windows memory leak detection tool

Post by kuafu » Thu Feb 14, 2019 5:32 am

It's very useful.
We use it to dectection memory leak for JCIDE.
well

youyou
Posts: 55
Joined: Fri Jul 06, 2018 3:42 am
Points :382
Contact:

Re: Windows memory leak detection tool

Post by youyou » Thu Mar 21, 2019 5:26 am

:D

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer