Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Corrupted File?
Message
De
27/01/2008 20:19:49
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
27/01/2008 14:49:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01285906
Message ID:
01285973
Vues:
27
>Naomi --
>
>Both reasonable suggestions, which I will try ...
>
>Is what is going wrong here some failure when two people try to insert at the same time? No automatic file locking? (Just trying to understand the root cause).

This is actually quite interesting (and I'm sure these are on the list of words you didn't want to hear :). Fox is supposed to all the house cleanup, flushing, buffer purity checking etc when closing the file. The only thing that I imagine could go wrong here is that the dbf header somehow isn't updated properly with the current reccount() if two users are adding their records simultaneously (well, within some minimal timeframe).

I see a way to track this by writing a log of these writings into user files (just the PK and a datetime, but maybe the complete record too - up to you), and also checking to see whether the write actually took place - the recc() before and after, reopening the table to see whether the record is really there etc. All of this is just for debugging, of course.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform