FIX: Debugger Can't Debug Project That Has Spaces in Path Name

Last reviewed: September 18, 1997
Article ID: Q120966
2.00 WINDOWS NT kbtool kbfixlist

The information in this article applies to:

  • Visual Workbench Integrated Debugger, included with Microsoft Visual C++, 32-bit Edition, version 2.0

SYMPTOMS

Visual Workbench generates the following message box when you debug an application on a drive that uses a file format that supports long filenames (such as NTFS and VFAT) when a directory name in the executable's full path contains a space:

         ------------------------------------------------
        |            Microsoft Visual C++                |
        |------------------------------------------------|
        |  The executable 'xxxxxxx' could not be opened  |
        |                                                |
        |                     OK                         |
         ------------------------------------------------

Here 'xxxxxxx' is the full path up to the space in the directory name.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was fixed in Microsoft Visual C++, 32-bit Edition, version 4.0.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a directory called 'my dir' (without the quotation marks)

  2. Open Visual C++.

  3. Create a simple console application and save the source file in the 'my dir' directory.

  4. Build the application.

  5. Press the F8 kay to begin debugging the application. Visual Workbench generates a message box containing the error "The executable 'C:\my' could not be opened."

NOTE: If you try to create a new project in 'my dir' as the second step, the Visual Workbench generates a message box containing the error "Please choose a project path containing no spaces."


Additional reference words: 2.00
KBCategory: kbtool kbfixlist kbbuglist
KBSubCategory: WBDebug
Keywords : kbbuglist kbfixlist kbtool
Version : 2.00
Platform : NT WINDOWS
Solution Type : kbfix


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