Microsoft KB Archive/221665

= FIX: C0000005 Fatal Error With Invalid Form Included in File Syntax =

Article ID: 221665

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q221665



SYMPTOMS
In Visual FoxPro 6.0, if the header file containing invalid command syntax is included in a form in the Form Designer or in a class using the Class Designer, the following error message appears:

Fatal Error : Exception code = C0000005

In Visual FoxPro 5.0a running under Windows NT 4.0, the following error appears:

An application error has occurred and an application error log is being created.

VFP.exe

Exception:access violation (Oxc0000005), Address: 0x006b0f7f

In Visual FoxPro 5.0a running on Windows 98, the following error may appear:

This program has performed an illegal operation and will be shut down.

VFP caused an invalid page fault in module VFP.EXE at 015f:006b455b

Using the #INCLUDE command to include the header file generates a compile error or, if it is in a PRG, an error log file is created.



STATUS
Microsoft has confirmed that this is a bug 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



Steps to Reproduce Behavior
 Create an include file, named test.h.  In test.h, put in the following code: junk_include .t. endif  && Purposely leave out the # sign  Create a form, named test.scx. In the Form Designer, select the Form menu pad and the Include File menu option. In the Include File dialog, include test.h. Save the form.
 * 1) ifndef junk_include

Noted that immediately after saving the form, one of the errors mentioned in the Symptoms section occurs and Visual FoxPro terminates.</li></ol>

Keywords: kbbug kbfix kbxbase kbvs600sp1fix kbvs600sp2fix kbvs600sp3fix KB221665

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.