delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/27/06:40:03

Date: Thu, 27 Jan 2000 09:27:17 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Mehmet Alpay <AlpayM AT elcsci DOT com>
cc: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Re: can't seem to get signal handling to work
In-Reply-To: <30E4AB64FBD5D01191E500805FC108F004797569@ex1.elcsci.com>
Message-ID: <Pine.SUN.3.91.1000127092559.15566I-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 26 Jan 2000, Mehmet Alpay wrote:

> I wrote a somewhat long simulation program and I want to be able to
> "interrupt" it every once in a while to check on its progress. However, the
> little function I wrote for SIGINT handling doesn't seem to work properly -
> or something else is getting messed up! In any event, whenever I hit Ctrl-C
> while the program is running, I get the following pop-up error window:
> 
> The instruction at "0x0f003453" referenced memory at "0xffffffff". The
> memory could not be "read".
> Click on OK to terminate the application
> Click on CANCEL to debug the application

On what OS did that happen?  Is it NT by any chance?

And what happens if you click CANCEL?

> I did include the signal.h header file in the program, and it seems to run
> just fine when I compile it - again using gcc - under Linux. Any ideas?

Please post the code that installs the signal handler and the handler
itself.  It is next to impossible to help you without knowing how did
you write your code.

In general, catching signals works very well in DJGPP, except on NT,
where it usually crashes the program (due to a blatant bug in NT's DOS
emulator, ntvdm.exe).

- Raw text -


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