You are currently offline, waiting for your internet to reconnect

New File Created with CreateFileMapping() Returns ERROR_LOCK_VIOLATION

This article was previously published under Q266749
This article has been archived. It is offered "as is" and will no longer be updated.
When you create a file with the CreateFileMapping function, you may receive an ERROR_LOCK_VIOLATION response.
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.

Service pack information

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
260910 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				

Microsoft has confirmed that this is a problem in Windows 2000. This problem was first corrected in Windows 2000 Service Pack 2.

Article ID: 266749 - Last Review: 10/20/2013 22:38:07 - Revision: 2.5

Microsoft Windows 2000 Server

  • kbnosurvey kbarchive kbhotfixserver kbqfe kbbug kbfix kbwin2000presp2fix KB266749