Microsoft KB Archive/155889

= BUG: File Loses One Byte When Checked Out =

Article ID: 155889

Article Last Modified on 3/14/2005

-

APPLIES TO


 * Microsoft Visual SourceSafe 4.0 Standard Edition
 * Microsoft Visual SourceSafe 4.0a

-



This article was previously published under Q155889



SYMPTOMS
When a file is checked out, it loses one byte. This can be seen by doing a File Difference. It can also been seen by looking at the byte count of the file in the Working Directory and comparing this to the Size displayed in the Properties of the file in Visual SourceSafe. This will sometimes cause the file to function incorrectly in its native application. Use the WIN32\SSEXP.exe or WIN32\SS.exe.

- or -

Change the SetTime INI variable to "Current." This can be adjusted by changing the value of "Set date/time on local files:" located in the Tools menu, Options option, on the Local Files Tab.



CAUSE
Upon checking out a binary file, Visual SourceSafe removes the last character if that character is EOF (Decimal 26; Hex 1AH) and the SetTime INI variable is set to anything other than Current.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
This behavior seems to occur when six factors are true:


 * 1) The user is running the DOS or WIN executables, either SS or SSEXP.
 * 2) The file type in Visual SourceSafe is binary.
 * 3) The last byte of the file is Hex EOF.
 * 4) The SetTime INI setting is either Modification or Check In.
 * 5) SourceSafe is running in a 16-bit operating environment.
 * 6) Checking out the file causes SourceSafe to actually write its stored copy of the file to the user's hard drive. For example, if the local copy has been deleted or if the file is checked out to a directory that doesn't contain a copy of the file.

Keywords: kbbug kbpending KB155889

-

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

© Microsoft Corporation. All rights reserved.