[fpc-pascal] pc -> fpc porting question: reset()

Daniel Franke daniel.franke at imbs.uni-luebeck.de
Mon Apr 17 15:59:58 CEST 2006



> > 6065:  reset(ipedfile,'ipedfile.dat');
> > 6066:  reset(datafile,'datafile.dat');
>
> Would become:
>
> Assign(ipedfile,'ipedfile.dat')
> Reset(ipedfile);


Breakpoint 1, INITILINK () at ilink51.p:6065
6065      Assign(ipedfile,'ipedfile.dat');
(gdb) next
6066      Reset(ipedfile);
(gdb)
Runtime error 2 at $08063C1B
  $08063C1B
  $08063EE4

It's correct behaviour to crash if the file ('ipedfile.dat' in this case) does 
not exist?

	Daniel



More information about the fpc-pascal mailing list