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

Last reviewed: October 29, 1997
Article 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 INFORMATION

Steps to Reproduce Behavior

  1. 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
       **************************************************
    
    

  2. Run the program by issuing the following command in the Command window:

          DO TEST.PRG
    

  3. With the mouse, click four or five times in the gray area of the form.

  4. Click in the Command window.
Keywords          : buglist5.00 FxprgGeneral vfoxwin vfpfix5.0a kberrmsg kbprg kbbuglist kbfixlist
Version           : 5.0
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbfix


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 29, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.