See comments below:
>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.Is it fptfix file#18 from download section?
>Looking at the code it determines that the next free block pointer should be:NextFreeBlockPt = INT((MemoFileSize/BlockSize)+1)
>Is this correct? No it's not correct and it's actually the same as
NextFreeBlockPt = INT(MemoFileSize/BlockSize)+1
>Or should the correct pointer be just:>INT(MemoFileSize/BlockSize)
>or
CEILING(MemoFileSize/BlockSize)
Eaither one should return correct result because there's always whole number of memo blocks in a file. I would go with the second expression, just to be safe.
--sb--