Article ID: 221744
Article Last Modified on 5/10/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft Visual FoxPro 3.0b Standard Edition
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual FoxPro 5.0a
- Microsoft Visual FoxPro 6.0 Professional Edition
- Microsoft Visual FoxPro 3.0b for Macintosh
This article was previously published under Q221744
SYMPTOMS
Building a project that contains an invalid preprocessor directive causes an error. Depending on the version of Visual FoxPro being used, one of the following error messages appears:
Visual FoxPro 3.x for Windows displays a message box with the following message:
Visual FoxPro 3.0b for Macintosh displays a message box with the following message:
Depending on the version of Windows, Visual FoxPro 5.x and Visual FoxPro 6.0 display one of the following messages:
Under Windows 9x:
Under Windows NT 4.0:
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
MORE INFORMATION
This behavior occurs when a preprocessor directive references an object that is read-only.
Steps to Reproduce Behavior
- Create a new project.
Add a new main prg using the following code:
#UNDEF _DEBUG #IF Application.ActiveProject.Debug #DEFINE _DEBUG #ENDIF
- Build an application from the project.
Keywords: kbbug kbfix kbprojmanager kbxbase kbvs600sp3fix KB221744