PRB: Checking Out Forms and MAK File Loses Changes in Memory

Last reviewed: January 10, 1997
Article ID: Q154834
The information in this article applies to:
  • Microsoft Visual SourceSafe, 16-bit and 32-bit, for Windows, version 4.0
  • Microsoft Visual Basic Enterprise Edition, 16-bit and 32-bit, for Windows, version 4.0

SYMPTOMS

A subset of the Visual Basic project files are checked out and modifications have been made to the files. If the rest of the project files are then checked out without first saving the changes made to the already checked out files, those changes will be lost.

CAUSE

Visual SourceSafe relies on Visual Basic to make sure all files are saved before reloading the make file (.VBP or .MAK). It appears that Visual Basic does not prompt the user to save changes before reloading the make file. Therefore, the changes are lost.

RESOLUTION

Be sure to save changes to your project files prior to checking out the MAK or VBP file. When the Select All Command is chosen during checkout, the MAK or VBP file is included in the list of files to be checked out. If the MAK or VBP file is selected to be checked out, Visual Basic will reload the MAK or VBP file.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Problem

  1. Start a project in Visual Basic 4.0. Form1 is created by default.

  2. Open a Visual Basic project that is under Source Code Control and has two or more forms in the project.

  3. Check out one form. Do not check out the other forms or the .VBP or .MAK file

  4. Make a change to the form, such as adding a button. Do not save the change.

  5. Select another form in the project window and choose to check out the form. In the "check out" dialog, choose SELECT ALL. Note that the list does not show the form you have already checked out, but does show everything else to check out. Press OK to check out the files.

  6. Note that the form you already had checked out closes. You are never prompted to SAVE changes.

  7. Reopen the form that was modified previously. Note that all the changes are lost.


KBCategory: kbprg kbprb
KBSubcategory: ssafe
Additional reference words: 4.00 kbdsd vbwin vss



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 10, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.