View Full Version : Viewing Block Properties

07-20-2006, 09:39 AM
As your program executes, you may want to track memory blocks contained within the heap to see what is happening to them. Do this by selecting the Variable Window's Tool > Block Properties command, or by right-clicking on a block within the Heap Status Graphical View and selecting the Properties command. [/url]
You can now display these properties by selecting the [b]Tools > Block Properties command from within the Process Window. For example: http://www.etnus.com/Documentation/latest/html/TotalView_Tips/images/67Memory_BlockProperties_s1.png
If you expand an individual property and then increase the size of the top pane, you'll see something similar to this snapshot. Notice the [b]Notify when deallocated and Notify when reallocated buttons at the bottom of the top pane. When a button is selected, TotalView stops program execution when the block is either allocated or deallocated.[br] [/url]
For example, suppose you have a double free problem. Normally, the Memory Debugger stops execution when the second free occurs. If you select this button, TotalView also stops execution at the point where your first deallocated this memory.