Sdílet prostřednictvím


Memory Access Operation in the context of a freed block: reuse-after-delete or double-delete

Application Verifier stop message

Heap violation detected. Memory Access Operation in the context of a freed block: reuse-after-delete or double-delete or Heap operation performed on an already freed block.

Probable cause

This is an error found in the heap blocks when they are freed several times. This is detected when the second free of the block does not have the proper prefix header and cannot be found among the allocated blocks. This stop can be a variant of the reallocation problem because when the application frees what it thinks is the address of the block, that block was already freed as part of the reallocation.

Information displayed by Application Verifier in Tool Window

Heap Handle – Heap handle for the heap owning the block

Block address – Heap block address

Size – Size of the heap block

Description - Memory Access Operation in the context of a freed block: reuse-after-delete or double-delete or Heap operation performed on an already freed block.

Trace description – Saved stack frames for the HeapFree/free/delete operation

Additional information

The call stack in the Tool Window shows where the heap memory was freed. The current call stack shows where the freed memory is being accessed.

See Also

Concepts

Heap Verifier