Microsoft KB Archive/266749

= New File Created with CreateFileMapping Returns ERROR_LOCK_VIOLATION =

Article ID: 266749

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server

-



This article was previously published under Q266749



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.



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.

Keywords: kbhotfixserver kbqfe kbbug kbfix kbwin2000presp2fix KB266749

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.