BUG: VSSItem Does Not Handle Strings Greater Than 128 Bytes

Last reviewed: February 2, 1998
Article ID: Q176352
The information in this article applies to:
  • Microsoft Visual SourceSafe, 32-bit, for Windows, version 5.0

SYMPTOMS

When you use ActiveX automation to programmatically control Visual SourceSafe, the VSSItem object does not handle strings longer than 128 characters. When you try to specify a Visual SourceSafe path greater than 128 characters, an error occurs.

RESOLUTION

It is possible to work around this problem by programmatically performing a recursion through the Visual SourceSafe tree and moving down to the specific item you want.

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

Steps to Reproduce Behavior

  1. Create a new Visual Basic project.

  2. Add a reference to the Microsoft Visual SourceSafe automation component.

  3. Add a button to Form1.

  4. Enter the following code into the click method of the button:

         Dim VssDb as VSSDatabase
         Dim SC_Item as VSSItem
         Set VssDb = New VSSDatabase
         VssDb.Open "C:\VSSPath\SrcSafe.ini","UserName","Password"
         Set SC_Item = VssDb.VSSItem("SourceSafe path > 128 Characters ",False)
    

  5. Run the program and click the button you just created.

  6. A runtime error occurs with the explanation "Invalid Access Code (Bad Parameter)"
Keywords          : ssusage
Technology        : kbole
Version           : WINDOWS:5.0
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: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.