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

Daniel Franke daniel.franke at imbs.uni-luebeck.de
Mon Apr 17 16:12:55 CEST 2006


On Monday 17 April 2006 16:18, Michael Van Canneyt wrote:
> 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.


I'm set. Thanks!

	Daniel



More information about the fpc-pascal mailing list