Microsoft KB Archive/161834

= FIX: Long String Placed in RowSource Property Causes Error =

Article ID: 161834

Article Last Modified on 10/15/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 3.0b for Macintosh

-



This article was previously published under Q161834



SYMPTOMS
Setting the RowSource property of a list or combo box object to a long string causes Visual FoxPro 3.0 to report an error message or to shutdown. The behavior depends on the platform Visual FoxPro runs on. In the Macintosh version, the following error appears:

Unknown Error Code 1482162264

And the Debug window highlights the following line: This.Combo1.RowSourceType = 1 In Visual FoxPro 3.0b for Windows running on Windows 95, the program shuts down after displaying the following error:

This program performed an illegal operation and will be shut down.

After pressing the Details button, the following error appears:

VFP caused an invalid page fault in module Kernel32.dll at.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 5.0 for Windows.



Steps to Reproduce Behavior
 Create a form. Add a combo box to the form.  In the Activate event of the form, place the following code: cText = "" FOR nLoop = 1 TO 25 cText = cText + REPLICATE( "X", 10 ) + "," ENDFOR cText = SUBSTR( cText, 1, LEN( cText ) - 1 ) This.Combo1.RowSource = cText This.Combo1.RowSourceType = 1  Run the form.

Additional query words: VFoxWin VFoxMac kbdsd

Keywords: kbbug kbfix KB161834

-

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

© Microsoft Corporation. All rights reserved.