www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/14/05:23:50

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: SIGINT handling & stdio
Date: Fri, 13 Dec 1996 19:19:58 -0800
Organization: Three pounds of chaos and a pinch of salt
Lines: 39
Message-ID: <32B21CDE.7067@cs.com>
References: <199612131541 DOT KAA17352 AT raptor DOT IRO DOT UMontreal DOT CA>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp210.cs.com
Mime-Version: 1.0
To: Marc Feeley <feeley AT IRO DOT UMontreal DOT CA>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Marc Feeley wrote:
> 
> Thanks for your response.  I am running the program from a dos box in
> Windows-NT 3.51 and am using DJGPP v2.0 and CWSDPMI release 2.  If I'm
> not mistaken, CWSDPMI won't be used in this case right?  Could this be
> the reason why the program behaves differently for you?  Anyway when I
> run the program a ctrl-c will immediately terminate the program after
> "^C" is displayed.  I would like the program to display "interrupt"
> and then go on to read the next character.  Is this what you get?

Windows NT may be the problem, actually.  If a DJGPP program detects
that DPMI already exists, it will not load CWSDPMI, but will attempt to
use whatever DPMI is already present.  It is possible that WinNT is
preventing your program from hooking the SIGINT interrupt the way you
want.

BTW, I ran it successfully under Windows 3.1 as well as under
DOS/CWSDPMI.  I don't have Windows 95 or NT, so I can't test those.

I don't know enough about NT to know this; is there a way you can boot
directly to DOS, bypassing Windows NT?  If so, try your program out like
that -- it should work.  If it does, then NT is definitely the problem.

A note on versions:  It seems like you are a step behind everybody
else.  ;)  The latest versions of each of the things you mentioned are:

  Windows NT 4.0
  DJGPP v2.01
  CWSDPMI release 3

It is _possible_ that upgrading to WinNT 4.0 will solve your problem...
but this is just a guess.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I |        fighteer AT cs DOT com          |
| Descent 2: The Infinite Abyss - The greatest Internet game of all |
| time just got better!  This time, you're going all the way down...|
---------------------------------------------------------------------

- Raw text -


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