Microsoft KB Archive/161900

= FIX: Clicking from ListBox on Form to Command Window Gives GPF =

Article ID: 161900

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition

-



This article was previously published under Q161900



SYMPTOMS
Repetitive clicking between a multi-line Editbox control on a form, where the Editbox contains many rows of data, and the Command window results in an operating system-level error. A dialog box appears that states the following:

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



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



Steps to Reproduce Behavior
  Copy and paste the following code into a program named Test.prg in Microsoft Visual FoxPro version 5.0 running on Windows 95: **************************************************  *-- Program: test.prg *-- Code to illustrate page fault in  *-- Visual FoxPro for Windows 5.0

PUBLIC oForm oForm = CREATEOBJECT("testform") oForm.Show

**************************************************  *-- Form:         testform *-- ParentClass: form *-- BaseClass:   form *  DEFINE CLASS testform AS FORM Top = 0 Left = 0 DoCreate = .T.     Caption = "Testform Form" Name = "testform"

ADD OBJECT edit1 AS editbox WITH ; Height = 217, ; Left = 12, ; Top = 12, ; Width = 121, ; Name = "Edit1"

PROCEDURE Click KEYBOARD REPLICATE("a"+CHR(13), 60 ) ENDPROC

ENDDEFINE *  *-- EndDefine: testform **************************************************                             Run the program by issuing the following command in the Command window: DO TEST.PRG  With the mouse, click four or five times in the gray area of the form. Click in the Command window.

Keywords: kberrmsg kbbug kbfix kbvfp500afix kbprogramming KB161900

-

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

© Microsoft Corporation. All rights reserved.