Create WIN32 project example:
# include "stdafx.h"
# include "VLD.h"
Int _tmain(int argc, _TCHAR* argv[])
{
Char *pBuf = new char[200];
Return 0;
}
Search found 55 matches
- Tue Jan 22, 2019 4:25 am
- Forum: Other Tools
- Topic: Windows memory leak detection tool
- Replies: 5
- Views: 17661
- Tue Jan 22, 2019 4:25 am
- Forum: Other Tools
- Topic: Windows memory leak detection tool
- Replies: 5
- Views: 17661
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 var...
- Tue Jan 22, 2019 4:25 am
- Forum: Other Tools
- Topic: Windows memory leak detection tool
- Replies: 5
- Views: 17661
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/
- Mon Jan 14, 2019 10:42 pm
- Forum: Other Tools
- Topic: Windows Server 2008 configures the time Server
- Replies: 4
- Views: 15912
Re: Windows Server 2008 configures the time Server
Hopefully it will be helpful to have colleagues who have encountered this problem
- Mon Jan 14, 2019 10:41 pm
- Forum: Other Tools
- Topic: Windows Server 2008 configures the time Server
- Replies: 4
- Views: 15912
Re: Windows Server 2008 configures the time Server
This setting forces the host to declare itself a reliable time source, using a built-in CMOS clock. If you want to use an external time server, use the default a value. 3. Change the [Type] in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type to NTP. 4. Restart Win32Time s...
- Mon Jan 14, 2019 10:41 pm
- Forum: Other Tools
- Topic: Windows Server 2008 configures the time Server
- Replies: 4
- Views: 15912
Re: Windows Server 2008 configures the time Server
The method is as follows: Server: By default, the standalone SERVER WINDOWS SERVER 2008 works as an NTP client, so the registry must be modified to run the system as an NTP SERVER. Please back up the registry file before working. 1. Change the key value HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Se...
- Mon Jan 14, 2019 10:40 pm
- Forum: Other Tools
- Topic: Windows Server 2008 configures the time Server
- Replies: 4
- Views: 15912
Windows Server 2008 configures the time Server
Due to the work needs, I need to configure the time server in 2008. I found it on the Internet and successfully configured it. Please record:
First, WINDOWS SERVER 2008 turns off the NTP service by default and needs to be opened by changing the registry
First, WINDOWS SERVER 2008 turns off the NTP service by default and needs to be opened by changing the registry
- Mon Jan 14, 2019 10:37 pm
- Forum: Solutions
- Topic: SELinux is a solution that allows an x.so to be invoked normally
- Replies: 2
- Views: 19398
Re: SELinux is a solution that allows an x.so to be invoked normally
Method one:
Modify /etc/selinux/config file,
Change the SELINUX = enforcing to SELINUX = disabled.
Then, save, close, and restart the machine.
Method two:
Execute the command chcon-t texrel_shlib_t XXX. So
Modify /etc/selinux/config file,
Change the SELINUX = enforcing to SELINUX = disabled.
Then, save, close, and restart the machine.
Method two:
Execute the command chcon-t texrel_shlib_t XXX. So
- Mon Jan 14, 2019 10:37 pm
- Forum: Solutions
- Topic: SELinux is a solution that allows an x.so to be invoked normally
- Replies: 2
- Views: 19398
SELinux is a solution that allows an x.so to be invoked normally
I have encountered many problems before. Because SELinux is on, when executing a program, it will prompt: error while loading Shared libraries: XXX. So: cannot restore segment prot after reloc: Permission denied.
- Mon Jan 14, 2019 3:13 am
- Forum: Other Tools
- Topic: How does JAVA adjust C(JNA)?
- Replies: 8
- Views: 22110
Re: How does JAVA adjust C(JNA)?
This approach to JAVA calling C is much simpler than JNI development. But there is a big performance cost, which is to say, jna is much slower than jni in terms of program performance. So while jni can be a pain in the neck to develop and process data type conversions, it can be used in situations w...