Visualizing the heap

 

The Memory Debugger can provide a visual depiction of the heap.

You create this view in the same way as any other:

  1. Select Tools > Memory Debugging.
  2. Select Enable Memory Debugging with the Configuration Tab.
  3. Select the Heap Status Tab.
  4. If you want leaks to be displayed, press the ... button next to the Graphical View pulldown.
  5. In the Preferences Window, select Label leaked memory blocks. If you are debugging a C++ program, you probably also want to select Check interior pointers during leak detection.
  6. After pressing OK, let your program run until a breakpoint.
  7. Press the Generate View button.

Next week's tip will describe the contents of this window.


You can find tips that we've already sent out in our Tip Archive

Help us improve these tips!