unhandled exceptions on stdout
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
Unhandled exceptions are written to stdout, but I think they should be written to stderr.
Stderr is the standard on unix for errors, and if you redirect stdout to a file, you don't get the error messages.
Additional information:
sysutils.inc:
Procedure CatchUnhandledException (Obj : TObject; Addr: Pointer; FrameCount: Longint; Frames: PPointer);[public,alias:'FPC_BREAK_UNHANDLED_EXCEPTION'];
Var
Message : String;
i : longint;
hstdout : ^text;
begin
hstdout:=@stdout; //<<!!
Writeln(hstdout^,'An unhandled exception occurred at $',HexStr(PtrUInt(Addr),sizeof(PtrUInt)*2),' :');
if Obj is exception then
Mantis conversion info:
- Mantis ID: 17346
- Build: 2.4.0-2 [2010/02/20]
- Version: 2.4.0
- Fixed in version: 3.0.0
- Fixed in revision: 30140 (#bda36260).
- Monitored by: » hapr35 (hapr35), » BigChimp (Reinier Olislagers)
- Target version: 3.2.0