BUG: Repeatedly Manipulating Data in Editbox Causes Error Message

ID: Q238945


The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a, 6.0


SYMPTOMS

After editing a large amount of data within an Editbox object, Visual FoxPro 6.0 produces the following error:

Fatal error: Exception code=C0000005
In Visual FoxPro 5.0x running under Windows NT 4.0, the following Dr. Watson message appears:
An application error has occurred and an application log is being generated.
VFP.exe
Exception: access violation:(0x0000005),Address: <memory address>
Visual FoxPro 5.0x running on Windows 98 produces the following error:
This program has performed an illegal operation and will be shut down.


STATUS

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


MORE INFORMATION

This error normally occurs while copying, pasting, and deleting large amounts of data manually. The code below, which automates the process, produces the same results.

Steps to Reproduce Behavior

  1. Paste the following code into a program file:


  2. 
    CLEAR
    CLEAR all
    _screen.addobject('edt1','editbox')
    _screen.edt1.width = 360
    _screen.edt1.visible = .t.
    _screen.EDT1.value = '12345678901234567890123456789012345678901234'
    _screen.edt1.setfocus()
    KEYBOARD '{ctrl+a}{ctrl+c}{END}{ctrl+v}{ctrl+v}{ctrl+v}{ctrl+v}'+ ;
    '{ctrl+v}{ctrl+v}{ctrl+v}{ctrl+v}{ctrl+v}{ctrl+v}{ctrl+v}' + ;
    '{ctrl+v}{ctrl+v}{ctrl+v}{ctrl+v}{ctrl+v}{ctrl+v}{ctrl+v}{ctrl+v}'
    KEYBOARD '{home}{shift+uparrow}{shift+uparrow}{del}{shift+end}{home}'
    KEYBOARD '{home}{shift+uparrow}{shift+uparrow}{backspace}{shift+end}{home}' 
  3. Close the Command window, but leave the program open.


  4. Run the program by pressing the CTRL+E key combination.


  5. One of the errors mentioned in the SYMPTOMS section above occurs.

Additional query words:

Keywords : kberrmsg kbContainer kbCtrl kbVFp500abug kbVFp600bug kbXBase kbGrpFox kbDSupport
Version : WINDOWS:5.0,5.0a,6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: August 13, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.