Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is flush needed?
Message
De
18/03/2003 10:14:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/03/2003 02:57:31
Michael Ouellette
Australian Technical Services (VIC) Pty
Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00766903
Message ID:
00767022
Vues:
13
>I just lost 30 records I was adding in an application.
>I use row buffering on all tables.
>Ex: =CursorSetProp("buffering",3,"company")
>All tables are opened when the app starts. None are opened in the DE.
>Every new record I added was lost when my laptop locked up and I had to reboot.
>Existing records I changed were ok for some reason??? I had been adding records over a 2 hour period.
>Since this has never happened to me before should I now issue a flush after
>each save?
>This is how I saved records: =Tableupdate(.T.,.T.,"company")
>
>TIA

TableUpdate() by itself will close VFP buffers, but not OS buffers.

So, to answer your question, I think yes, you should use FLUSH regularly. You should also disable write-cache for the hard disk (or is it the OS?).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform