delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/13/15:27:11

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Still problems with protected_mode_int
Date: Thu, 13 Jan 2000 21:33:04 +0200
Organization: NetVision Israel
Lines: 18
Message-ID: <387E2870.7C7E0FE4@is.elta.co.il>
References: <387E00EF DOT 58796444 AT bluewin DOT de>
NNTP-Posting-Host: ras1-p59.rvt.netvision.net.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 947792081 20436 62.0.172.61 (13 Jan 2000 19:34:41 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 13 Jan 2000 19:34:41 GMT
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,ru,hebrew
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Erik Rull wrote:
>
> Then in W95 in a DOS - Box: The ISR is called and outputs the ++tics,
> and it's the same result when I use printf() or cout <<...
> When the getkey() is passed, windows returns with the following message:
> 
> Error at: 0028:C003D8B6
> V86MMGR(01)+0000006A
> IRQ:0 (no "blue screen")
> ?????
> And the system hangs up...

You cannot use cout or printf in an interrupt handler.  A program which does
that will surely hang, crash, and otherwise behave erratically.

>       cout << "Tics passed: " << ++tics << "\n";

Remove the cout thing and leave only ++tics.

- Raw text -


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