www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/07/11:50:02

Date: Sun, 7 Nov 1999 17:11:39 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Frederic Cazenave <cazenave AT radar DOT mcgill DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: DPMI memory allocation 2
In-Reply-To: <3821FDFA.59E2@radar.mcgill.ca>
Message-ID: <Pine.SUN.3.91.991107171113.12805T-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 4 Nov 1999, Frederic Cazenave wrote:

> The problen is beetween the interrupt and the write.
> The two parts work fine separately but most of the
> time when I try to write while some interrupts are
> treated my system crashes.

The code you've posted doesn't seem to include the portion that writes
the data.  Are you, by any chance, writing to a file from inside the
interrupt handler?  If so, this is a no-no: DOS is non-reentrant, so
you cannot safely call DOS functions from an interrupt handler.

Anyway, you should always post the complete crash message when you
report such problems.  The information included with the registers'
dump and the stack traceback is a big help in guessing what's wrong
with your program.

- Raw text -


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