BUG: File Loses One Byte When Checked Out

Last reviewed: January 9, 1998
Article ID: Q155889
The information in this article applies to:
  • Microsoft Visual SourceSafe, 16-bit and 32-bit, for Windows, versions 4.0, 4.0a

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.

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.

WORKAROUND

  • 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.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

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.


Additional query words: 4.00a 4.00
Keywords : ssafe ssother
Version : Win3.x:4.0,4.0a
Platform : WINDOWS
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.