Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1113 on Requery()
Message
From
03/06/2013 10:45:04
 
 
To
03/06/2013 10:10:49
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01575077
Message ID:
01575505
Views:
60
>>When behavior between VFP IDE and EXE that would suggest different settings to me. SET COLLATE, in particular, would be my first step to check because a) it causes different indexes to be used in the process and b) there have been a few bugs in the past in VFP where the binary conversion of just a few values was broken with another collate sequence than MACHINE.
>>
>>In this case, however, as the error is fully reproducible, I'd simply fire up Process Monitor from sysinternals.com and check what file VFP is looking for.
>
>So this gets really interesting. DBF("the view") is, not surprisingly, a TMP file, but what temp file it is changes regularly. I'm guessing that each time I requery, it may change files.
>
>The index file (testing using CDX()) starts out as the original file name with a CDX extension. But fairly late in the game (over an hour into this particular test), it suddenly changes to a temp file, and then seems to change on each (or most) requery() thereafter. The crash happens within seconds of that change, though dozens more records get processed before the failure.
>
>Definitely bolsters the theory that there's a problem with the index file and I'm now speculating that the problem is creating the index file.

Yes - Requery() changes the name of the dbf()

If not possible to get rid of the index - I'd try setting sys(3050) to a low value
	=sys(3050,1, 64 * 1024 * 1024)
	=sys(3050,2, 16 * 1024 * 1024)
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform