Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to report of CDX and DBF out of synch and index
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00253326
Message ID:
00253358
Views:
34
>Hi,
>
>My application run fine, but sometimes, my client server hang, causing
>my application processing data to give error as it can't access the data files giving CDX problem.
>
>Is there any ways before my program process data, that I can detect this problem with CDX or DBF that I can auto do a reindex to solve the
>problem. Any suggestions or advise on how to do it is very much appreciated. Thank you.


In your error routine, you could attempt to trap the error and try to get an exclusive hold on the table in question. But it will probably be difficult and almost impossible to do. The thing to do is to find out why the tables are being corrupted in the first place.
(1) Check to see if users are turning their power off in the middle of your program. (2) See if the errors are occuring during a power surge (get a UPS). (3) Check the network cards in the machines, etc, etc.

Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Reply
Map
View

Click here to load this message in the networking platform