New File Created with CreateFileMapping() Returns ERROR_LOCK_VIOLATION

Article translations Article translations
Article ID: 266749 - View products that this article applies to.
This article was previously published under Q266749
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

SYMPTOMS

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.

RESOLUTION

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 the Microsoft 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
				

STATUS

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

Properties

Article ID: 266749 - Last Review: October 20, 2013 - Revision: 2.5
APPLIES TO
  • Microsoft Windows 2000 Server
Keywords: 
kbnosurvey kbarchive kbhotfixserver kbqfe kbbug kbfix kbwin2000presp2fix KB266749

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com