Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Header corruption and KB Q293638
Message
 
To
15/11/2001 02:08:23
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00580276
Message ID:
00582004
Views:
36
>Hi George
>
>I understand how it can occur, and how to fix it. But difficult to fix when there is no warning of the problem, and that is my main point. Once VFP finds a problem, it appears to simply ignore it.
>
>I suspect the issue goes back to VFP3, and the problem hasn't really been looked at since then. Tanks for your comment.
>
Geoff,

The problem, as I see it is this: If VFP throws an error in these cases, then the table doesn't open and fixing the problem becomes more complex. OTOH, if it doesn't, it would seem to me to be less of a problem. All you'd have to do is calculate what the size of the table should be (using HEADER(), RECCOUNT(), RECSIZE()) and then compare it to the actual size on the disk. If they don't match, then you know there's a problem, and fixing it becomes simple.

From my POV, this then puts the process in the area of file maintenance. I believe that it's a good idea to periodically PACK tables and re-build their indexes in order to reduce the problems of memo and index bloat.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform