delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/12/05:36:24

From: "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: wierd problem
Date: Mon, 12 Jul 1999 09:43:30 +0100
Organization: (Posted via) Netcom Internet Ltd.
Lines: 27
Message-ID: <7mc9r9$sq1$1@taliesin.netcom.net.uk>
References: <37893502 DOT 9FB263CB AT geocities DOT com>
NNTP-Posting-Host: hgty.capgemini.co.uk
X-Trace: taliesin.netcom.net.uk 931769001 29505 194.42.240.2 (12 Jul 1999 08:43:21 GMT)
X-Complaints-To: abuse AT corp DOT netcom DOT net DOT uk
NNTP-Posting-Date: 12 Jul 1999 08:43:21 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Sahab Yazdani wrote in message <37893502 DOT 9FB263CB AT geocities DOT com>...
>okay, first I wrote a keyboard handling class in C++, and every thing
>seemed to go okay, now I have a funny implementation of it, for instance
>(extremely simplified code):
>
<snip>
>
>The funny thing is that the first call to GetKeyPressed works, but the
>second one doesn't (the one thats in the function).  No matter which key
>you press it crashes, and it destroys the DOS box along with it (because
>windows notices that the interrupt handler hasn't been released).  A
>person that I asked said that the keyboard interrupt address has
>changed????  Anyways any help would be greatly appriecited.  If you want
>some source code, plz just e-mail!


Sounds like you're not signalling the end of the interrupt. If that is the
case then just put this line at the end of the interrupt handler.

outportb (0x20, 0x20);

For a working C++ keyboard handler see my webpage
(http://www.reggin.freeserve.co.uk/ in the snippets section)

Michael Stewart


- Raw text -


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