Microsoft KB Archive/162553

= FIX: ALEN Function Causes Illegal Operation in Debug Window =

Article ID: 162553

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition

-



This article was previously published under Q162553



SYMPTOMS
Using the ALEN function in the Debug window to reference an array that does not exist in a form causes Visual FoxPro 3.0 for Windows to shut down. The following error message appears in Windows 95 after the form closes:

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

Clicking Details reveals the following message:

VFP caused an invalid page fault in module at.

In Windows NT 4.0, the following error appears:

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

VFP.exe

Exception: access violation, Address:.

The operating system then closes Visual FoxPro.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual FoxPro 5.0 for Windows.



Steps to Reproduce Behavior
 Create a form called ztest.scx.  Add a command button to the form. In the Click event of the button, place the following code: ThisForm.Release  Save the form. Invoke the Debug window, type the following line, and press the Enter key:

ALEN(ThisForm.atest)

This references a nonexistent array. Run the form and click the command button to close the form. The error occurs and Visual FoxPro shuts down.</li></ol>

Keywords: kbbug kbfix kbvfp500fix KB162553

-

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

© Microsoft Corporation. All rights reserved.