Unexpected Exception Raised In Heap Code Path

Application Verifier stop message

Heap violation detected. Unexpected exception <exception_code> raised in heap code path.

Probable cause

This stop is generated if while executing the heap manager code an access violation. The exception record information can be used to find the exact context of the exception. This stop can also happen if there is a random corruption in the internal heap structures or in double free situations, if the block among full page heap cannot be found and it’s probed as a light page heap block.

Information displayed by Application Verifier in Tool Window

Heap Handle – Heap handle for the heap owning the block

Block address – Heap block involved in the operation.

Size – Size of the heap block.

Description - Unexpected exception <exception_code> raised in heap code path.

Trace description – No stack frames for the current block

Additional information

Frequency of this error is low.

See Also

Concepts

Heap Verifier