[fpc-pascal]Unknown RT error
tom_at_work at yline.com
Tue Feb 26 19:04:36 CET 2002
----- Original Message -----
From: James_Wilson at i2.com
To: fpc-pascal at lists.freepascal.org
Sent: Tuesday, February 26, 2002 4:36 PM
Subject: [fpc-pascal]Unknown RT error
>Does anyone know what a runtime error 998 means? I can't
>find that one in the docs. The program compiles fine (I'm
>using Win32), but then when I try to run it I get that odd RT
>The program is one I'm writing to see if I can read and
>parse blocks of CR/LF delimited text strings faster then
>readln can. I've attached a sample that gives the error. A
>-gl says the problem is on line 51, but that's nothing more
>then a blockread() command. Can anyone see what
>the problem is?
Hmm, my suggestion would be replacing the "reset (BinaryFile);"
with a "reset (BinaryFile, 1)" since otherwise blockread tries to read
data in chunks of 128 Bytes not single bytes, e.g. BUFFERSIZE*128 bytes
I'm not mistaken.
It seems to work then though. ^^
More information about the fpc-pascal