Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!aries!mcdonald From: mcdonald@aries.scs.uiuc.edu (Doug McDonald) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: When CTRL+C doesn't work. Message-ID: <1990Sep11.182648.3581@ux1.cso.uiuc.edu> Date: 11 Sep 90 18:26:48 GMT References: <6241@castle.ed.ac.uk> Sender: news@ux1.cso.uiuc.edu (News) Reply-To: mcdonald@aries.scs.uiuc.edu (Doug McDonald) Organization: School of Chemical Sciences, Univ. of Illinois at Urbana-Champaign Lines: 36 In article <6241@castle.ed.ac.uk> elee24@castle.ed.ac.uk (H Bruce) writes: >I am getting more distenchanted with my PC ....... >I am implementing image processing algortihms (using Microsoft C 5.1). >Such algorithms consist of many nested loops. >When a bug in my code causes a loop never to exit the PC hangs. >This is not because DOS has crashed but beacuse the microprocessor cannot >be interrupted by CRTL+C or CTLR+BREAK. >This result is that the PC must be rebooted. >This is a very time consuming way to find bugs ! >Does anyone know how I can interrupt the program ? > >Putting "break=on" into my config.sys file makes no difference. > > >Thanks, > >Henry Bruce. The following is a TSR that will break out of loops, even in the cases you describe above. It will not always leave your PC in a useable state, however, if the program it stops has done something strange, like usurp interrupts. Basica or Gwbasic, for example, do this, as do many network programs. Uudecode this program and run in from you autoexec.bat. The command that it uses to stop programs is control-alt-4 (hit control and alt, hold them down, then hit 4). begin 0666 breakit.com MZTV0`````/L&5U!14IRX``".P+\7!":*)?;$!'0FY&`\!74@]L0(=!N*R.1A MBN`,@.9ABL3F8?JP(.8@^[`!M$S-(<^=6EE87P