FIX: Debugger Can't Debug Project That Has Spaces in Path Name
ID: Q120966
|
The information in this article applies to:
-
Visual Workbench Integrated Debugger
-
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
- Create a directory called 'my dir' (without the quotation marks)
- Open Visual C++.
- Create a simple console application and save the source file in the 'my
dir' directory.
- Build the application.
- 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 :
Version :
Platform : NT WINDOWS
Issue type :