I even tried calling RtlCreateHeap and passing it
HEAP_TAIL_CHECKING_ENABLED
for flags. No joy.
Hmm. Can one call RtlDebugCreateHeap() to do this?
Hi Dan,
Using gflags.exe to enabled heap tail checking works fine for me.
I use the following command line:
gflags -i myapp.exe +htc
This causes myapp.exe to generate an INT 3 when it encounters a double
free. Unless I executed "windbg -I" (which install windbg as my
postmortem debugger of choice), I don't even get to notice this is
happening. Myapp just disappears when the double free takes place.
Hope this helps,
Osiris