Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index(*.IDX) Corruption Error C0000005
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00295295
Message ID:
00295388
Vues:
21
>Well, I may have finally found what my C0000005 problem has been. After days of testing for this problem alone, I've been able to recreate it. I got a more meaningful error message this time, and I have determined that it involves a simple index file being corrupted-- reindexing(DEL *.IDX and then INDEX ON again) fixes the problem. The only index open at this time(the one at fault) is a simple index on a logical field(PAID). The PAID field is changed in only 3-4 places in the program-- only once per record number. All it does is change it to .T. after locking the record(only if RLOCK returns true, of course). What could I be doing wrong to corrupt this index? Are there some rules in updating index keys that I'm just not following? Any ideas? Thanks.

Is it possible in some place in your code, that you don't have the .IDX file open when there are new records added to the table? Why are you using .IDX files, anyways? With .IDX's, you have to remember to have them open when new records get added/changed, etc. CDX tags make much more sense (and easier to remember!) today.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform