Date: Sun, 22 Dec 2002 07:54:59 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Ewout Boks 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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?