| Previous | Next |
| STATUS_BAD_COMPRESSION_BUFFER | STATUS_AUDIT_FAILED |
STATUS_USER_MAPPED_FILE
A user mapping prevents the requested file transformation
Memory-mapped views keep a section relationship with the file. Operations such as truncation, replacement, or certain metadata changes can be unsafe while user processes still map that section, because mapped pages and file layout must remain coherent.
Closing the original file handle is not sufficient if views or section handles remain. The mapping owner must unmap all views and release the mapping object before the incompatible operation is retried.
What to inspect
- Enumerate or trace section creation and MapViewOfFile ownership.
- Ensure every view is unmapped before closing the mapping handle.
- Avoid forceful file replacement while another component legitimately executes or reads through a mapping.
References
Looking for a different code? Search another status or error code.