www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/12/09:43:48

Date: Mon, 12 Jan 1998 16:38:02 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Fabrice ILPONSE <fabrice AT trash DOT lip6 DOT fr>
cc: djgpp AT delorie DOT com
Subject: Re: hardretn and others
In-Reply-To: <34B9F41F.2538@trash.lip6.fr>
Message-ID: <Pine.SUN.3.91.980112163444.3180C-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019