PRB: Sync Between Visual SourceSafe and VB Is Delayed

Last reviewed: February 28, 1997
Article ID: Q135357
4.00 5.00 | 4.00 5.00 WINDOWS NT | WINDOWS kbui kbprb

The information in this article applies to:

  • Microsoft Visual SourceSafe for Windows NT, versions 4.0, 5.0
  • Microsoft Visual SourceSafe for Windows 95, versions 4.0, 5.0
  • Microsoft Visual SourceSafe for Windows, versions 4.0, 5.0
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic for Windows, 16-bit and 32-bit, version 4.0

SYMPTOMS

SourceSafe commands can be run from either Visual Basic or from the Visual SourceSafe Explorer. When the SourceSafe commands are run in Visual Basic, the Visual SourceSafe Explorer is automatically updated to reflect the changes. However, when the SourceSafe commands are run in the Visual SourceSafe Explorer, Visual Basic is not updated. The Visual Basic errors which result may not reflect the fact that the Visual Basic project status is out of sync.

CAUSE

This synchronization issue is due to a known limitation of the Visual Basic Add-In integration model.

RESOLUTION

Any time SourceSafe commands are run in the Visual SourceSafe Explorer, which impact a project open in Visual Basic, the user should choose Refresh File Status from the Add-Ins/SourceSafe menu. By refreshing the project file status, Visual Basic is able to get in sync with Visual SourceSafe.

When SourceSafe commands are run in the Visual SourceSafe Explorer, the changes take effect immediately, even though the glyphs in Visual Basic are not updated until the file status is refreshed. For example, if a file is checked out using the Explorer, it can be checked in from Visual Basic without doing a refresh. If the user runs a checkout in the Explorer and then a Get from Visual Basic, the status glyphs are updated in the Visual Basic session. So, the changes are seen in Visual Basic, just not right away.

STATUS

No fixes are planned at this time.


KBCategory: kbui kbprb
KBSubcategory: SourceSafe ssvb vss vbwin
Additional reference words: 4.00 Windows 95 5.00
Keywords : SourceSafe ssvb vbwin vss kbprb kbui
Version : 4.00 5.00 | 4.00 5.00
Platform : NT WINDOWS


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