| Previous | Next |
| STATUS_ILLEGAL_INSTRUCTION | STATUS_INVALID_VIEW_SIZE |
STATUS_INVALID_LOCK_SEQUENCE
The lock was used in an invalid state sequence
This status identifies a sequencing error in lock management rather than ordinary contention. The caller performed an acquire, release, conversion, or related lock operation in a state the implementation does not permit. The exact legal sequence depends on the owning API or lock type, so the status alone cannot identify the missing transition.
Preserve the lock address or object ID, thread ID and complete acquire/release history. Check recursive acquisition rules, shared-to-exclusive conversions, release-after-failure and cleanup that runs twice. For kernel drivers, verifier and debugger lock diagnostics can expose inconsistent lock order and ownership earlier than a production deadlock.
What to inspect
- Identify the precise lock primitive and the operation that returned the status.
- Trace successful and failed transitions, not only the final release.
- Use verifier or lock-order instrumentation to reconstruct ownership and ordering.
References
Looking for a different code? Search another status or error code.
