FIX: Clicking from ListBox on Form to Command Window Gives GPF
ID: Q161900
|
The information in this article applies to:
-
Microsoft Visual FoxPro for Windows, version 5.0
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
MORE INFORMATIONSteps 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.
Additional query words:
Keywords : kberrmsg kbprg kbVFp kbVFp500afix kbVFp500bug FxprgGeneral
Version : 5.0
Platform : WINDOWS
Issue type : kbbug
|