[fpc-pascal]redirecting error messages

Jonas Maebe jonas at zeus.rug.ac.be
Wed Nov 22 18:28:07 CET 2000

>> > 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);
>Should it work under DOS/ GO32V2, too ?



More information about the fpc-pascal mailing list