FIX: Setting SelStart = 0 in EditBox Causes Fatal Exception (299788)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q299788

SYMPTOMS

When you set the SelStart property of an EditBox control to 0, Visual FoxPro may exit with the following error message:
Fatal Error: Exception Code = C0000005

STATUS

This problem was corrected in Microsoft Visual FoxPro version 7.0 for Windows.

MORE INFORMATION

Steps to Reproduce Behavior

Run the following code in the Command window:
*!* Q299788 FIX: Setting SelStart = 0 In EditBox Causes Fatal Exception
loDemo = CreateObject('EditBox')
loDemo.SelStart=0
				

Modification Type:MajorLast Reviewed:10/16/2002
Keywords:kbBug kbCodeSnippet kbContainer kbCtrl kbvfp700fix KB299788