programmatically determine whether records exist

Kenneth Brody kenbrody at spamcop.net
Mon Feb 16 08:40:23 PST 2015


On 2/16/2015 11:15 AM, Fairlight wrote:
> Hey Ken?
>
> I wrote something external which just reads in every record and checks byte
> one of the header.  If it's 0, it's not used, if it's 1, it's used.  It
> apparently runs fine, -except- if someone is in the middle of modifying
> record #1.

"DDW".  :-)

What about record 2?  Are you saying that people can be updating other 
records, and only record 1 causes a problem?

> Any clue why that would be?

Not without knowing what, exactly "doesn't work", what O/S this is, and not 
without knowing what, exactly, your code does to read the records.

FYI - There's another possible value for the first byte of the record.  If 
someone is creating a record, the byte will be 2.  (It's been removed from 
the freechain, but doesn't yet "exist".)

-- 
Kenneth Brody


More information about the Filepro-list mailing list