The Memory Debugger can let you know when your program deallocates a memory block.
  1. [/url]
  2. After your program allocates the Memory Block, use the Variable Window's Tools > Add to Block Properties command or right click on the block within the Memory Debugger.[br]
    [/url]
  3. Display the Block Properties Window. After TotalView displays the window, you'll see a list of blocks that you've told the Memory Debugger to watch. [br]
    [/url]
  4. Expand the top Memory Blocks area. Either press the + symbol or the Hide Backtrace Information button at the bottom of this window. If you press this button, you'll see the something like the following window:[br]

    [/url]
    Selecting the Notify when deallocatedcheck box tells the Memory Debugger to monitor this memory block such that when your program frees it, it should stop execution and let you know that this just occurred. After selecting the check box, close the window.[br] [/url]
  5. Select the Go button from the toolbar. When the block is deallocated, the Memory Debugger stops execution and displays itsMemory Event Details Window.