If you want to debug your program's use of the heap (storage you allocate and deallocate explicitly using new, delete, and C Library functions such as malloc and free), you may want the heap to be automatically checked after each step command, breakpoint encountered, or halt command. If so, you need to set heap checking options before the module you want to debug is incorporated. These options cause heap debugging versions of the memory management functions to be used, so that heap usage can be tracked and heap usage errors found. To set the appropriate options, do the following:
You can also set this option by using Live Find from within the Options or Project Options page. To use Live Find, select the pane the view is in, then press Ctrl+F, or click mouse button 2 and select Live Find.
![]()
Check Heap for Corruption After Each Step
Command
Find Memory Allocation (Heap) Problems
