Mail Archives: djgpp/1998/01/12/09:43:48
On Mon, 12 Jan 1998, Fabrice ILPONSE wrote:
> > I would therefore suggest not to mess with this at all. If the original
> > code only wants to trap the ubiquitous "Abort, Retry, Fail?" prompt, then
> > DJGPP already does it for you. But if the application really needs to
> > take any path other than Fail, it is in general not possible in DPMI.
>
> That's false!! cos I've done it!
>
> it's very simple but I don't know what'll happen if the program exits
> in the handler.
I know what happens: your system crashes, either immediately or after a
while.
I used the word ``impossible'' above in the sense that you cannot do it
safely; I didn't mean that it cannot be done at all. However, it hardly
makes sense to do something which is known to be dangerous. It is very
easy to catch Int 24h (see the DJGPP startup code for an example), but if
your handler does anything except return a failure status, your
application will crash one day.
- Raw text -