Menu

Application Verifier break message

Mismatched Acquire-Release on the SRW lock.

Probable cause

This stop is generated in the following situations:

  • An SRW lock was acquired by calling AcquireSRWLockShared and is being released by calling ReleaseSRWLockExclusive.

  • An SRW lock was acquired by calling AcquireSRWLockExclusive and is being released by calling ReleaseSRWLockShared.

Information displayed by Application Verifier

Parameter 1 � SRW lock address

Parameter 2 � Thread ID of the thread that acquired the SRW lock

Parameter 3 � Address of the �acquire� stack trace

Parameter 4 � Not used

Additional Information

Verifier Stop Code 0252.

A mismatch between the functions called to acquire and release an SRW lock can result in unpredictable behavior, including a hang or a crash.

To debug this stop, use the following debugger commands:

kb - to get the current stack trace. The stack trace shows you where the SRW lock is being released by the wrong function.

dps parameter 3 � to get the �acquire� stack trace. The �acquire� stack trace shows you where the lock was acquired.