[fpc-pascal]redirecting error messages
Dirk Verwiebe
dirk at verwiebe.de
Wed Nov 22 18:29:07 CET 2000
Should it work under DOS/ GO32V2, too ?
Dirk
Michael Van Canneyt schrieb:
> On Wed, 22 Nov 2000, Udo Giacomozzi wrote:
>
> > Hello,
> >
> > is there a secure way to redirect/copy all error messages like "Access
> > violation" (including all other error information) to a file?
>
> Yes. Close stderr and reopen it with another filename.
>
> Close(StdErr);
> Assign(StdErr,'/dev/null');
> Rewrite(StdErr);
>
> After this, all error messages will be written to '/dev/null'...
>
> 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