[fpc-pascal] pc -> fpc porting question: reset()
Michael Van Canneyt
michael at freepascal.org
Mon Apr 17 16:18:05 CEST 2006
On Mon, 17 Apr 2006, Daniel Franke wrote:
>
>
> > > 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?
Yes. Runtime error 2 means that the file does not exist.
Michael.
More information about the fpc-pascal
mailing list