Microsoft KB Archive/159269

= FIX: Label Caption Longer Than 255 Characters Causes GPF =

Article ID: 159269

Article Last Modified on 3/24/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition

-



This article was previously published under Q159269



SYMPTOMS
Visual FoxPro 5.0 causes a General Protection Fault (GPF) when the caption property of a Label is set more than 255 characters.



WORKAROUND
Set the caption property of a Label to something less than 255 characters.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
This behavior happens only in Visual FoxPro 5.0; it works as expected in Visual FoxPro 3.0 or 3.0b.

Steps to Reproduce Behavior
 Create a Form and place a Label on it.  In the INIT method of the form, put in the following code: ThisForm.Label1.Caption = Replicate("X",256)  Save and run the form.

NOTE: Visual FoxPro terminates immediately when the form runs. (Generally the fault is an "Invalid Page Fault.")

Additional query words: kbdse vfoxwin

Keywords: kbbug kbfix kbvfp600fix KB159269

-

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

© Microsoft Corporation. All rights reserved.