Enable page heap

The Enable page heap flag turns on page heap verification, which monitors dynamic heap memory operations, including allocate and free operations, and causes a debugger break when the verifier detects a heap error.

Abbreviation

hpa

Hexadecimal value

0x02000000

Symbolic Name

FLG_HEAP_PAGE_ALLOCS

Destination

System-wide registry entry, kernel flag, image file registry entry

Comments

This option enables full page heap verification when set for image files and standard page heap verification when set in the system registry or as a kernel flag.

  • Full page heap verification (for /i) places a zone of reserved virtual memory at the end of each allocation.

  • Standard page heap verification (for /r or /k) places random patterns at the end of an allocation and examines the patterns when a heap block is freed.

Setting this flag for an image file is the same as typing gflags /p /enable ImageFile /full for the image file at the command line.