To launch your program with Memory Analysis enabled from the IDE:
-
Create a run or debug configuration as you normally would, but don't click
Run or Debug.
-
In the Create, manage, and run configurations dialog, click the Tools
tab.
-
Click Add/Delete Tool (at the bottom).
-
In the Tools selection dialog, check the Memory Analysis box,
then click OK.
-
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.
- 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".
-
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.
-
Click Apply to save your changes.
-
Click Run or Debug.
The IDE starts your program and lets you analyze its memory usage and errors.