Newsgroups: comp.os.msdos.djgpp From: Daniel Johnson Subject: Bug using Delay()... Sender: news AT csc DOT liv DOT ac DOT uk (News Eater) Message-ID: <335C96C2.369F@csc.liv.ac.uk> Date: Tue, 22 Apr 1997 10:45:22 GMT Lines: 20 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Organization: The University of Liverpool To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I recently came across an unusual bug, when running the following program under Windows 3.1 : #include #include int main(void) { delay(2500); exit(0); } It works fine when run under dos, but hangs the machine when run in a Windows dos box. Is this something to do with the DPMI services provided by Windows ? Am I just being stupid ? Is the answer in the FAQs ? Are chips really blue ? Danny...