| Previous | Next |
| ERROR_MAX_THRDS_REACHED | ERROR_BUSY |
ERROR_LOCK_FAILED
The requested lock could not be established
ERROR_LOCK_FAILED indicates that a locking operation failed without a more specific sharing or timeout result. Causes include conflicting access, unsupported locking behavior, invalid ranges, or a lower-level filesystem failure.
Investigation
- Record the object, range, lock mode, and wait policy.
- Check for another process holding an overlapping lock.
- Verify the filesystem supports the requested semantics.
- Review range calculations for overflow or zero-length mistakes.
Handling
Retry only under a bounded contention policy. Never proceed with updates that require exclusivity when the lock was not acquired.
References
Looking for a different code? Search another status or error code.