Debugging Memory Problems with MemoryScape : Chapter 1 Locating Memory Problems : Starting MemoryScape

Starting MemoryScape
On most architectures, there is not much you need to do to prepare your program for memory debugging. In most cases, just compile your program using the –g command-line option. In some cases, you may need to link your program with the MemoryScape agent. (See Chapter 4, “Creating Programs for Memory Debugging” for more information.)
Here is how you start MemoryScape:
1
Start MemoryScape from a shell window. On a Macintosh, depending upon how it was installed, you can start it using the MemoryScape program icon.
2
 
3
If you need to, select your memory debugging options. In most cases, the defaults are fine. In some cases, you may want to select Low, Medium, High, or Extreme. If you need finer control, select the Advanced Options button, Figure 15. For more information, see Task 3: “­Setting MemoryScape Options”.
 
4
 
Whenever your program is stopped—which happens when you halt the program, when a memory problem occurs, or just before the program exits—MemoryScape can create a report that describes leaks or one that shows or describes currently allocated memory blocks.

Rogue Wave Software, Inc.
Voice: (303) 473-9118
rwonlinedocs@roguewave.com