Set Incorporation Options for Heap Debugging

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:

  1. Select the Configuration section of your project.
  2. Select either the Options or the Project Options page of the Configuration section.
  3. In the Options or Project Options view, expand the C++ Compiler Options entry if it is not already expanded.
  4. Expand the Miscellaneous options entry if it is not already expanded.
  5. Under Miscellaneous Options, turn on the Enable debug version of memory management functions setting.
  6. Reincorporate your project.

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