Date: Sun, 4 May 1997 14:04:29 +0300 (IDT) From: Eli Zaretskii To: Daniel Johnson cc: djgpp AT delorie DOT com Subject: Re: Why oh why (again)... In-Reply-To: <33686B1A.2DCA@csc.liv.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 1 May 1997, Daniel Johnson wrote: > From DOS box within windows (3.11) it appears to hang the machine - > Ctrl-Alt-Del reports that the application has stopped responding to > the system. Occasionally, it hangs the entire machine - but this is > uncommon. > > BUT IT'S NOT A WINDOWS PROBLEM !!! > > How do I know this ? The same code operates fine in all conditions > when compiled with Borland Turbo C/C++... This doesn't prove anything. Borland's library could well implement `delay' using a different method. DJGPP uses Int 15h, function 86h. I don't know whether Windows does something bad to that function, and my references don't mention anything special about this service under Windows, but I won't be surprised if Windows does screw it up (it has been known to take over several time-related fuctions). I would suggest testing your program on another machine with Windows (just in case there's something wrong with the specific version of BIOS on that single machine), and if the problem persists, post a question to Windows-related forum, or look this up in one of the Microsoft knowledge bases.