Partager via


Remote Resource Leak Detector (Compact 7)

3/12/2014

The Resource Leak Detector is an updated version of the CE Application Verifier (CEAV) tool from earlier versions of Platform Builder. It is based on the Remote Tools Framework. 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 1.10, 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, click Add module in the left pane of the Remote Tools Shell.

  3. To choose test parameters, select the module in the Resource Leak Detector configurations table, and then click Add. In the Test Settings dialog box, enter the name of the module 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, in the left pane of the Remote Tools Shell, select the module in the Resource Leak Detector configurations table, and then click Delete module.

See Also

Other Resources

Remote Tools in Platform Builder