Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record is not in index (Error 20) Cause?
Message
From
31/01/2024 21:41:50
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01687574
Message ID:
01687613
Views:
53
>>I think it's safe to rule out access latency caused by AV software. Reason I say that is I can get to just before the COPY TO is issues and wait for as long as I want (i.e., let AV do its thing), then let the COPY TO run and I will get Error 20 the first time.

VFP's autospanning to disc can be part of it: it's not always predictable if/when VFP autospans cursors or intermediate results to disk, at which point the virus scanner takes an interest. Is COPY TO more likely to create temporary disk files to provoke the glitch? Maybe watch the temp folder to see whether new tmp or index files appear.

If you're using the default %TEMP% environment variable for VFP's TEMP setting, that's a popular vector for email/website hacker payloads, so very likely to be scanned on customer PCs. So the other suggestion again involves VFPA that lets you change your TEMP setting at runtime. Move VFP's working files somewhere outside %TEMP% to a location that's only used by your app, so no need to virus scan. You could also do this in a local config.fpw, but that's an extreme security risk as it allows hackers to inject their own code with a text editor.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform