Memory Validator’s default settings will not detect handle leaks, so the first thing to do is change the settings to enable handle tracking. The following steps will show you how to do this.
The following explanation is for intermediate mode and expert mode. In novice mode, the dialog displayed has less choices, the correct choice for collecting handles should be obvious. In novice mode, the data collection settings dialog is the dialog used to configure data collection and data display.
This tutorial will use the nativeExample.exe sample application to demonstrate memory leak detection. The nativeExample.exe application is shipped as a project with source code. The project can be found in the nativeExample directory in the same directory that Memory Validator was installed in. Please compile all configurations of the sample application before continuing the tutorial. The project file is nativeExample.dsp.
To detect handles leaks your application:
Select [installdir]\nativeExample\debugNonLink\nativeExample.exe using the Browse… button. Accept all default settings and move through all pages of the wizard to the last page. Click the Start Application button.