Microsoft KB Archive/164385

= BUG: Large Result Sets May Become Corrupted in VFP =

Article ID: 164385

Article Last Modified on 2/24/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q164385



SYMPTOMS
When using a cursor or view against an external table like those in SQL Server or any other server, the local representation of the records at the end of the result set may become corrupted. Data on the server itself is not affected. Occurrence of the corruption varies with the size of the result set and the settings of SYS(3050). Corruption may also occur with the default settings for SYS(3050). Corruption occurs after switching to another program or bringing up a new window like the Class Browser.



RESOLUTION
Following are some suggestions to avoid this problem:  Maximize the buffer size by setting both SYS(3050,1) and SYS(3050,2) to the value of SYS(1001). Do not use Class Browser concurrently or have projects or designers open when using these queries or views, and, where possible, avoid moving other application windows in front of Visual FoxPro during use of these cursors.  Test cursor or view for the presence of corruption with the following command: LOCATE FOR AT(CHR(0))  Install more memory. Work with smaller cursors, bringing down a smaller subset of the data. Limit the number of cursor open at any given time.</ol>

<div class="status_section">

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

NOTE: This problem is rare and isolated to the specific conditions described in this article.

<div class="moreinformation_section">

MORE INFORMATION
Corruption depends upon available memory, the setting, if any, of SYS(3050), the number of records, number of fields and size of the fields. It seems that only very specific combinations cause the error. Changing a field size or adding or deleting a field may resolve the problem.

Keywords: kbbug kbpending KB164385

-

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

© Microsoft Corporation. All rights reserved.