ERROR_WAS_LOCKED - 717 (0x2CD)
{Page Locked} One of the pages to lock was already locked.
Updated: Feb 21, 2026
Technical Meaning
The error ERROR_WAS_LOCKED with the numeric code 717 and hex code 0x2CD indicates that an attempt was made to lock a page in memory, but the page was already locked. This suggests that the operation encountered a condition where it could not proceed because the target resource is already in use.
Error Details
This error typically occurs during operations involving memory management or file system interactions, particularly when attempting to lock a specific page of data. The locking mechanism may be used for various purposes such as ensuring data integrity, preventing concurrent modifications, or managing access to critical resources.
Usage Context
The context in which this error might occur includes:
- Memory management operations where pages are locked to prevent them from being swapped out to disk.
- File system operations that require exclusive access to specific page ranges of a file.
- Database transactions that lock data pages to ensure consistency and prevent concurrent modifications.
Developer Interpretation
When encountering ERROR_WAS_LOCKED, developers should consider the following:
- Verify that the operation is being performed in an appropriate context where locking is necessary.
- Ensure that the page or resource being locked has not been locked by another process or thread.
- Check for any race conditions that might cause multiple attempts to lock the same resource.
Related Errors
- ERROR_ALREADY_EXISTS (183): Indicates an attempt to create a file or directory that already exists, which may be related if the error occurs in a similar context involving file system operations.
- ERROR_LOCKED (32): A more general error indicating that a resource is locked and cannot be accessed.
FAQ
Q: What does ERROR_WAS_LOCKED mean?
A: It means an attempt was made to lock a page in memory, but the page was already locked.
Q: How can I resolve this error?
A: Ensure that the operation is performed correctly and that no other process or thread has already locked the resource. Review the context of the operation and verify all parameters are correct.
Summary
ERROR_WAS_LOCKED (717) indicates a condition where an attempt to lock a page in memory failed because the page was already locked. This error is specific to situations involving memory management or file system operations that require exclusive access. Developers should ensure proper context and parameter validation to avoid this error.