Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Next Free Block Pointer
Message
De
20/09/2001 04:13:47
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Next Free Block Pointer
Divers
Thread ID:
00558633
Message ID:
00558633
Vues:
52
I was testing out FIXFPT to see how it would handle certain corrupt memo files I have. I found that FIXFPT would detect a bad memo pointer on memo files which had no apparent problem. It consistently found the pointer, calculated from the header file, to be 1 less than what FIXFPT calculated it should be.

Looking at the code it determines that the next free block pointer should be:
NextFreeBlockPt = INT((MemoFileSize/BlockSize)+1)
Is this correct? Or should the correct pointer be just:
INT(MemoFileSize/BlockSize)
or
CEILING(MemoFileSize/BlockSize)
TIA

Ken

P.S. I was trying to find out an answer first by searching the message area but am having problems losing my connection.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform