[fpc-pascal]Error messages again
Dirk Verwiebe
dirk at verwiebe.de
Tue Dec 19 22:21:55 CET 2000
I tried it under win98 in a dos box (go32v2) with snapshot from today and
get only a file with length 0 byte.The error message appeard on the screen.
close(stderr);
assign(stderr,'err.txt');
rewrite(stderr);
mem[$fffff]:=0;
Dirk
Michael Van Canneyt schrieb:
> On Tue, 19 Dec 2000, Lindmayer Antal wrote:
> The solution is to close stderr and to re-open it to a file:
>
> Close(stdErr);
> Assign(stderr,'somefile');
> rewrite(stderr);
> // now all errors go to somefile...
>
> Make sure you have write permission on somefile.
>
> Michael.
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list