Microsoft KB Archive/221693

= FIX: C0000005 Fatal Error With This.Caption=This.Text In GotFocus =

Article ID: 221693

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q221693



SYMPTOMS
After adding a custom property named Text to a form and then using the code This.Caption = This.Text from a form method, you might receive the error:

Fatal error: Exception code=C0000005



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 a new form. Add a new form property and name it "Text."  In either the form's Activate or GotFocus event, paste the following code: ThisForm.Text = "Test Form" ThisForm.Caption = ThisForm.Text  Save and run the form. Close the form and run the form again if necessary to create the error.

Keywords: kbbug kbfix kboop kbcontainer kbctrl kbvs600sp3fix KB221693

-

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

© Microsoft Corporation. All rights reserved.