[fpc-pascal]Unknown RT error

James_Wilson at i2.com James_Wilson at i2.com
Tue Feb 26 21:08:15 CET 2002


Thomas;

> Hmm, my suggestion would be replacing the "reset  (BinaryFile);"
> statement with a "reset (BinaryFile, 1)" since otherwise blockread
> tries to read the data in chunks of 128 Bytes not single bytes,
> e.g. BUFFERSIZE*128 bytes if I'm not mistaken.

But on my blockread statement I'm using sizeof (Buffer) -- which is a 32K 
array of char -- to determine the block size to read from the file. I 
would assume that blockread would then only try to read 32768 bytes, 
correct? Or is that wrong...

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20020226/af06a28f/attachment.html>


More information about the fpc-pascal mailing list