Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Next Free Block Pointer
Message
From
20/09/2001 04:13:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Next Free Block Pointer
Miscellaneous
Thread ID:
00558633
Message ID:
00558633
Views:
53
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.
Next
Reply
Map
View

Click here to load this message in the networking platform