X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Thu, 10 Jan 2002 12:41:31 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: ROLAND Message-Id: <3405-Thu10Jan2002124131+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <20020110101754.95433.qmail@web9104.mail.yahoo.com> (message from ROLAND on Thu, 10 Jan 2002 02:17:54 -0800 (PST)) Subject: Re: Problem with alarm & signal (was PMCOM) References: <20020110101754 DOT 95433 DOT qmail AT web9104 DOT mail DOT yahoo DOT com> 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 > Date: Thu, 10 Jan 2002 02:17:54 -0800 (PST) > From: ROLAND > > I now found that the problem is not with PMCOM, but > somewhere in alarm() and signal(). > When I make the calls to alarm() a comment, my program > runs and runs and runs! But when I try to stop it by > pressing CTRL-C, I get the same error as before (Not > being able to access 0xffffffff)... `alarm' hooks the timer interrupt, so it sounds like PMCOM's interrupt handler is not signal-safe or perhaps the implementation of `alarm' is not safe when other hardware interrupts are present. Does the Windows message cite any address, and if it does, can you see (e.g., with a debugger) where in the code is that address? Alternatively, you could avoid using `alarm'. What do you use it for in that program?