Launching your program with Memory Analysis

To launch your program with Memory Analysis enabled from the IDE:
  1. Create a run or debug configuration as you normally would, but don't click Run or Debug.
  2. In the Create, manage, and run configurations dialog, click the Tools tab.
  3. Click Add/Delete Tool (at the bottom).
  4. In the Tools selection dialog, check the Memory Analysis box, then click OK.
  5. In the Memory Analysis tab, configure the settings for your program by expanding the groups and setting the various fields as needed.
    Note: If a program uses fork(), the control thread of the Memory Analysis tool must be disabled. The fork() function works only with single-threaded programs. To disable the thread, uncheck the Create control thread box.

    For a reference of all UI fields you can set, see Configuring Memory Analysis sessions below.

  6. Optional: Define the host paths where any DLLs used by the application are stored.
    For shared libraries, the IDE can usually find their debug symbols and hence, display their function names and line numbers in the results. For DLLs (and sometimes for shared libraries), you must manually specify the locations of the debug symbols, as explained in "Seeing debug symbols for libraries".
  7. If you want the IDE to automatically switch to the QNX Memory Analysis perspective when you start running or debugging, select Switch to this tool's perspective on launch at the bottom.
  8. Click Apply to save your changes.
  9. Click Run or Debug.
The IDE starts your program and lets you analyze its memory usage and errors.