Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-08

(no subject)

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ivan Baev

I have a little problemw with the following:

while not eof (beschleunigungen) do
begin;
read (beschleunigungen,b,c,d,e,g);
writeln(b:8:0);
end;
writeln('test');
close (beschleunigungen);

(beschleunigungen) exists, don't worry.
The problem is, that I always get a runtime-error with useing 'while not eof'. The writeln('test'); does not appear on the screen. Just the following:

Runtime error 106 at 0x0805C596
0x0805C596
0x080480B0

I have the latest fpc-compiler. My Linux is Suse7.2. with KDE. Am I doing something wrong while programming, or is it a system-based error? Does anybody has an idea? Please mail me.

Thanks,

Ivan Baev
''

GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
Michael Van Canneyt
to Ivan Baev
Ivan Baev wrote 5 lines
I have a little problemw with the following: while not eof (beschleunigungen) do begin; read (beschleunigungen,b,c,d,e,g);

This should be
readln (beschleunigungen,b,c,d,e,g);
normally.

Michael.

Jonas Maebe
to Michael Van Canneyt
Michael Van Canneyt wrote 9 lines
> I have a little problemw with the following: > > while not eof (beschleunigungen) do > begin; > read (beschleunigungen,b,c,d,e,g); This should be readln (beschleunigungen,b,c,d,e,g); normally.

Or you can use "while not seekeof(beschleunigungen) do ..."

Jonas