delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/24/08:18:10

Date: Wed, 24 Jun 1998 15:17:57 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Mental Teo <s499435 AT dutiwy DOT twi DOT tudelft DOT nl>
cc: djgpp AT delorie DOT com
Subject: Re: disk error handling
In-Reply-To: <Pine.HPP.3.90.980624102927.13746B-100000@dutiwy.twi.tudelft.nl>
Message-ID: <Pine.SUN.3.91.980624151458.24233C-100000@is>
MIME-Version: 1.0

On Wed, 24 Jun 1998, Mental Teo wrote:

> also in djgpp, how can i trap and thus catch
> 
> disk-errors........like drive a: is not avialable?
> 
> in borland it's harderr & hardretn....

You cannot have harderr and hardretn in DJGPP, because DPMI spec doesn't 
allow to abort a DPMI program without going through the normal DPMI 
shut-down procedure, and hardretn can abort it it like that.

The only way to achieve what you want is to scan all valid drives before 
the user references a potentially absent drive.

- Raw text -


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