A session with standard heap options would go as follows:
GFlags /p /enable Program.exe
When your program attempts to delete the allocation, the system will check the suffix pattern, and if it has been overwritten, the system will raise an error. The symptom might be an error popup, an Application Verify Stop, an Access Violation, a Memory Check Error, or any other error type severe enough to force the operation system to halt execution.
You may be able to find out why the memory is being corrupted by examining the error message, the contents of the registers and memory at various levels in the call stack, and the corresponding source and assembly-language code.
GFlags /p /disable Program.exe