Launching your program with Memory Analysis

To launch your program with Memory Analysis enabled from the IDE:
  1. Create a Run or Debug launch 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.
  4. In the Tools Selection dialog, check Memory Analysis, then click OK.
    Adding a tool
  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.

  6. 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.
  7. Click Apply to save your changes.
  8. Click Run or Debug.
The IDE starts your program and lets you analyze its memory usage and errors.