home *** CD-ROM | disk | FTP | other *** search
- {$F+} PROCEDURE CustomExit; {$F-}
- BEGIN
- IF errorAddr <> NIL THEN
- BEGIN
- Writeln( '-------------------------------------' );
- Writeln( 'A small problem has developed.' );
- Writeln( 'Please jot down the following numbers' );
- Writeln( 'and call the programmer at 555-1212.' );
- Writeln;
- Writeln( 'Address = ',
- seg(errorAddr^), ':', ofs(errorAddr^) );
- Writeln( 'Code = ', exitCode );
- Writeln;
- Writeln( 'Thank you for your support!' );
- Writeln( '-------------------------------------' );
-
- errorAddr := NIL; { Cancel runtime error }
- exitCode := 0
-
- END; { if }
- exitProc := savedExitProc { Restore saved exitProc pointer }
- END; { CustomExit }