Article ID: 266749 - Last Review: October 30, 2006 - Revision: 2.5 New File Created with CreateFileMapping() Returns ERROR_LOCK_VIOLATIONThis article was previously published under Q266749 On This PageSYMPTOMS
When you create a file with the CreateFileMapping function, you may receive an ERROR_LOCK_VIOLATION response.
CAUSE
This error occurs if the NTFS Transaction log becomes full while you are creating the file mapping. Memory Manager is not waiting long enough for NTFS to flush the transaction log and returns the error, causing the function not to succeed.
RESOLUTIONService pack informationTo resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:260910
(http://support.microsoft.com/kb/260910/EN-US/
)
How to Obtain the Latest Windows 2000 Service Pack
The English version of this fix should have the following file attributes or later:
Date Time Version Size File name ----------------------------------------------------- 07/26/2000 08:02p 5.0.2195.2103 511,760 Ntfs.sys STATUSMicrosoft has confirmed that this is a problem in Windows 2000. This problem was first corrected in Windows 2000 Service Pack 2.
| Article Translations
|
Back to the top
