Programs That Lock 0 Bytes at Byte 0 Lock Entire File (161838)



The information in this article applies to:

  • Microsoft Windows NT Workstation 4.0
  • Microsoft Windows NT Server 4.0

This article was previously published under Q161838

SYMPTOMS

The client program opens a file on the server and locks 0 bytes at position (0). After this "lock_0_bytes_at_position_0," the same client cannot lock any other byte_range of that file (lock_i_bytes_at position_j, with i>0, j>0).

CAUSE

The locking mechanism incorrectly calculated the lock to be the entire file, instead of 0.

RESOLUTION

Run a different application that can lock a byte range other than 0 bytes at location byte 0 before running the application that will lock 0 bytes at byte 0. This will then cause the 0 byte locking application to function correctly.

-or-

Apply the hotfix for Windows NT 4.0.

STATUS

Microsoft has confirmed this to be a problem in Windows NT version 4.0. This problem was corrected in the latest Microsoft Windows NT 4.0 U.S. Service Pack. For information on obtaining the service pack, query on the following word in the Microsoft Knowledge Base (without the spaces):

S E R V P A C K


Modification Type:MajorLast Reviewed:8/9/2001
Keywords:kbnetwork KB161838