Date: Tue, 12 Jun 2001 11:10:14 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Pierre Muller cc: djgpp-workers AT delorie DOT com, Charles Sandmann Subject: Re: Interrupt 0x24 problem ? In-Reply-To: <4.2.0.58.20010611122001.01b8c2b0@ics.u-strasbg.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 11 Jun 2001, Pierre Muller wrote: > Interrupt 0x24 (and possibly 0x23) > are not disabled when exiting from a DJGPP > program. Correct. > But the exit code disables the 32 code selector > that is used for this interrupt, which means that this interrupt > will point to an invalid location > until the OS restores the previous values... > > Isn't this a potential source of crashes ? Where do you see the selector of __djgpp_i24 being invalidated in the exit code? AFAIK, that selector is CS, and it is valid until the program exits, at which time it is released by the DPMI host. The DPMI host handles Int 24h (and 23h) specially, so it should clean them up before releasing the selector. In any case, the DPMI host normally automatically fails any Int 24h calls, without letting them get to the client. The only exception I know of is QDPMI.