Knowledge Base Articles  

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

Q120966


The information in this article applies to:


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 query words: 2.00

Keywords :
Issue type : kbbug
Technology :


Last Reviewed: July 30, 2001