Microsoft KB Archive/238945

= FIX: Repeatedly Manipulating Data in Editbox Causes Error Message =

Article ID: 238945

Article Last Modified on 8/7/2007

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q238945



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:

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 that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in the latest service pack for Visual Studio 6.0.

For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed

To download the latest Visual Studio service pack, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx



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
  Paste the following code into a program file: 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}'  Close the Command window, but leave the program open. Run the program by pressing the CTRL+E key combination. One of the errors mentioned in the SYMPTOMS section above occurs.

Additional query words: sp4

Keywords: kbbug kbcontainer kbctrl kberrmsg kbfix kbvs600sp4fix kbvs600sp5fix kbxbase KB238945

-

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

© Microsoft Corporation. All rights reserved.