Reached end of file error

Mike Myers myersm at optonline.net
Tue Jun 4 10:43:47 PDT 2002


Env: WindowsNT, Frontier 8.0.5

I wrote a utility script to break up a large guest database (150 MB) into 4
different databases. The subtables were moved from the source file to
destination file by using the table.move() verb.

When I try to access an entry in some of the new file(s), I get the error:

Can't complete the operation because Windows reported an error: "Reached end
of file".

I can open the top level table to reveal the subtables in one of these
faulty databases. Everything looks hunky dory in the Frontier GUI. But if I
try to expand one of the subtables manually, I get the same "Reached end of
file" error.

I cannot Save a Copy, same error.

Two of the new guest databases have only 2 or 185 subtables, respectively,
and these are problem free. The next largest database that exhibits the
problem has 9543 subtables. The source file had over 30,000 subtables and,
of course, did not produce the access error.

The table hierarchy in the source file is not particularly deep:

[Some.root]
  someData (one table at top level)
    00001.[string objects 1 - 15]
    00002.[string objects 1 - 15]
    etc.      


I have a backup of the original source guest database. Is there a better way
to do the pruning and generate usable databases? I did not execute
filemenu.save() within the loop -- my next attempt would include a
filemenu.save() every 100 iterations or so.

-- mpm





More information about the Frontier-Users mailing list