Mail Archives: djgpp/2000/01/27/06:40:03
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 -