Memory Validator Tutorials

Memory Validator Tutorials

Using the Hotspot view.

Using Memory Validator with Visual Basic.

How to view GDI objects using Memory Validator.

How to use Memory Validator with a server application.

How to track memory allocations of a specific size using Memory Validator.

How to restrict the display to only a particular DLL using filters.

How to restrict the display to only a part of your application's execution.

How to prevent a DLL from loading.

How to monitor 3rd party memory allocation APIs using Memory Validator.

How to detect uninitialised data using Memory Validator.

How to detect memory leaks whilst your application is running.

How to detect memory leaks using Memory Validator.

How to detect memory corruption (tools) using Memory Validator.

How to detect memory corruption (memory reuse) using Memory Validator.

How to detect memory corruption (instrumentation) using Memory Validator.

How to detect memory corruption (instrumentation) using Memory Validator.

How to detect handle leaks using Memory Validator.

How to detect calling methods on deleted objects using Memory Validator.

How to detect broken message maps using Memory Validator.

How to detect COM Object Reference Count Errors using Memory Validator.

How to collect data only a from particular DLL.

Getting Started

Filtering using filename and line number.

Filtering using a filename.

Filtering using a directory name.

Filtering using a callstack.

Filtering using a DLL name.

Filtering by object type.

Filtering by handle type.

Filtering by allocation size.

Monitoring data from one or more DLLs

Miscellaneous

Memory Leak Detection

Memory Corruption and Application Crashes

Filters

Getting Started

The tutorials use the nativeExample.exe sample application to demonstrate memory leak detection and handle leak detection (including GDI leak detection).

The example application provides a few simple functions and user interactions to demonstrate the memory leak detection features of Memory Validator.

The tutorials will demonstrate detecting memory leaks, detecting handle leaks, detecting memory corruption and other advanced technique.

Solution

The solution file is examples\examples.sln.

The solution can be found in the examples directory in the same directory that Memory Validator was installed in.

There is no workspace file for Visual Studio 6. You will need to build each example on its own. For the purposes of this tutorial you only need to build nativeExample.dsp.

Projects

The project file is nativeExample.vcxproj.

If you are building with Visual Studio 6, the project file is nativeExample.dsp.

The project can be found in the examples\nativeExample directory in the same directory that Memory Validator was installed in.

Build

The nativeExample.exe application is shipped as a project with source code.

Please compile all configurations of the sample application before continuing the tutorial.

Fully functional, free for 30 days