If you enable memory debugging, TotalView displays information in the Variable Window about the variable’s memory status; that is, whether the memory is allocated or deallocated. The following small program allocates a memory block, sets a pointer to the middle of the block, and then deallocates the block:
Figure 25 shows two Variable Windows. Execution was stopped before your program executed the
free() function. Both windows contain a memory indicator saying that blocks are allocated.
After your program executes the free() function, the messages change,
Figure 26.