Remote Resource Leak Detector (Compact 2013)

3/26/2014

The Resource Leak Detector assesses the stability of an application and detects common programming mistakes. The tool can detect and pinpoint memory leaks, handle leaks (such as critical sections and DLLs), and leaks in graphics device interface (GDI) objects. The tool can also detect some forms of heap corruption.

Note

The Resource Leak Detector is specific to applications that are written in native code. However, you can also use it to identify potential issues in managed code. This is possible if the managed code calls native libraries, because the Resource Leak Detector reports resources that were not freed in the called native modules.

The Resource Leak Detector assists you with performing the following tasks:

  • Tracking handle usage
  • Detecting memory leaks
  • Detecting heap corruption conditions in applications and drivers

The Resource Leak Detector performs these tasks by inserting shims between the targeted modules and the operating system, and then applying the shim settings when the modules are loaded. It monitors all API calls that the targeted modules make, and tracks all allocated resources.

How to Use

To use the Resource Leak Detector

  1. To open the tool, do one of the following:

    • On the Start menu, click Programs, click Microsoft Remote Tools Framework 8.00, and then click Microsoft Remote Resource Leak Detector.
    • In Platform Builder, on the Tools menu, point to Remote Tools, and then click Resource Leak Detector.
    • In the Remote Tools Shell, on the View menu, click Remote Tools Shell Plug-in Explorer. Then, in the navigation pane of the Plug-in Explorer, browse to your device, expand the list of the available plug-ins, click Remote Resource Leak Detector, and then right-click and select Launch Plug-in.
  2. To add modules for monitoring, in the left pane of the Remote Tools Shell, select Configuration, and in the Configure Test Settings pane, click Add.

  3. In the Test Settings for dialog box, enter the name of the module that you want to monitor. You can enter the name of an EXE file or a DLL file. If you want to monitor more than one module, you must enter each one separately.

  4. To remove modules for monitoring, select the module, and then click Delete.

See Also

Other Resources

Remote Tools