Date: Thu, 09 Nov 2000 22:42:19 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <9743-Thu09Nov2000224218+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.8 In-reply-to: <8ueodf$5ep$1@nnrp1.deja.com> (dcasale@my-deja.com) Subject: Re: My program hangs under RHIDE's debugger References: <8ueodf$5ep$1 AT nnrp1 DOT deja DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: dcasale AT my-deja DOT com > Newsgroups: comp.os.msdos.djgpp > Date: Thu, 09 Nov 2000 17:55:00 GMT > > Like I said, this works outside the debugger. A program that runs outside a debugger but hangs under a debugger might have subtle bugs in it ;-) > > Why did you insert PUSHF and POPF? They are not needed for > > __dpmi_int calls; I suggest to remove them. > > Because another programmer who was working on this code before me found > that with _some_ __dpmi_int int 13h calls, interrupts were mysteriously > turned off after the call returned. That _may_ be the reason my system > clock is slowing down. Something must be turning interrupts back on, or else the keyboard would stop working as well, and you will have a totally wedged system. > > The Interrupt List says something about specific BIOSes which fail to > > handle this function correctly if the flag word at DS:[SI+2] is not > > 0000h on entry. Are you sure you zero that word? > > You mean InfoFlags in the structure above? Yes.