delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/22/00:56:34

Date: Sun, 22 Dec 2002 07:54:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Ewout Boks <kiwanda AT boks DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: djgpp hw interrupt seg fault
In-Reply-To: <3e02386f$0$88849$e4fe514c@news.xs4all.nl>
Message-ID: <Pine.SUN.3.91.1021222075427.28392C@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 19 Dec 2002, Ewout Boks wrote:

> I installed a similar handler for the timer hook (using
> _go32_dpmi_set_protected_mode_interrupt_vector() ) and I locked all
> variables and code involved using the go32 lock functions. The handler
> itself does all the necessary pushing and pooing of registers etc.
> 
> When I run the code (on Win NT in a DOS box) I get a segmentation fault
> as soon as the handler tries to modify a global variable - data local to
> the handler can be manipulated without problems.

Did you lock that global variable as well?

- Raw text -


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