Waldek Hebisch wrote:
I think that real backtrace is: FileHandle WriteErrorMessage WriteStackDump Finalize1 EndRuntimeError RuntimeError RangeCheckError
Discrepances IMHO can be explained by tail calls and fuzz in line numbers. Now the question is why do we get range check error and what is happening in `FileHandle' (maybe `StdErr' is uninitialized).
procedure Finalize1; begin FlushAllFiles; RestoreTerminal (True); Done_Files; if ErrorMessageString <> '' then WriteStackDump end;
Does Done_Files also operate on StdErr ?? The crash disappears if I comment out the Done_Files call;
Regards,
Adriaan van Os