Exitprocedures?
Posted: Wed Jun 05, 2002 4:05 am
Hello,
I know this thread is a little bit dislocatedt but,
I discovered some weird (so I think problem
running my Turbo Pascal OS... The main Kernel is
compiled with Turbo Pascal 7.0 and therefor follows
some of the .EXE behaviours of DOS programs. My problem:
I would like to trap all errors that normaly would
cause the program to terminate. To achieve this I wrote
my own Exitprocedure. This Procedure uses a Assembler Call
to jump to my Consoleprocedure.
If a error is cast, the kernel jumps to the exit procedure,
prints the error to the screen an returns to the console
that is a normal I/O repeat until loop inside a procedure.
After own error this works fine, the kernel keeps working as
normal but if a second error is cast, the kernel hangs or
I don't know exactly reboots (A reboot is my normal Kernel exit method)
Any Idea to keep it alive after a second/third error?
I know this thread is a little bit dislocatedt but,
I discovered some weird (so I think problem
running my Turbo Pascal OS... The main Kernel is
compiled with Turbo Pascal 7.0 and therefor follows
some of the .EXE behaviours of DOS programs. My problem:
I would like to trap all errors that normaly would
cause the program to terminate. To achieve this I wrote
my own Exitprocedure. This Procedure uses a Assembler Call
to jump to my Consoleprocedure.
If a error is cast, the kernel jumps to the exit procedure,
prints the error to the screen an returns to the console
that is a normal I/O repeat until loop inside a procedure.
After own error this works fine, the kernel keeps working as
normal but if a second error is cast, the kernel hangs or
I don't know exactly reboots (A reboot is my normal Kernel exit method)
Any Idea to keep it alive after a second/third error?