Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C5 Errors in VFP 7.0/VFP8.0
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
C5 Errors in VFP 7.0/VFP8.0
Miscellaneous
Thread ID:
00743553
Message ID:
00743553
Views:
53
Hi

For the past year I have had trouble with intermittent C5 errors in an VFP 7.0 application. It has taken alot of work to find the cause but I am now a little closer. The problem also occurs in the VFP 8.0 beta because I tested it also.

It appears that VFP optimization has something to do with the problem. I had the following lines in a method which often experienced a C5 Error:
 Scan For PID=ARTrn.ID.And.!EoF()
    Delete Next 1
 EndScan
I changed the line to :
 Scan For PID=ARTrn.ID.And.!EoF() NoOptimize
   Delete Next 1
 EndScan
(I realize that I do not need the !Eof() clause it is a habit from the pre-scan days of FoxPro.)

Since I have made that change to turn off the optimization I have not received a C5 error in 17days and counting. Previously I would see some every week.

Is this a known issue or has anyone else experienced this problem?

Simon
Simon White
dCipher Computing
Next
Reply
Map
View

Click here to load this message in the networking platform