Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!ogicse!plains!tsmith From: tsmith@plains.NoDak.edu (Timothy Lyle Smith) Newsgroups: comp.lang.pascal Subject: Re: Bug In Turbo Pascal v6.0 - crt unit/checkbreak Message-ID: <10292@plains.NoDak.edu> Date: 9 May 91 16:34:56 GMT References: <1991May9.032547.13756@cs.odu.edu> <1991May9.042604.4024@nntp-server.caltech.edu> <1991May9.144651.24687@cs.odu.edu> Organization: North Dakota State University, Fargo, ND Lines: 19 I don't have TPW6.0 but in TPW5.5 the variable CheckBreak is already defined in the CRT unit. By defineing CheakBreak locally, when you assign a value to it you are only changing the local variable. The CRT unit code does not check your local variable so checking is done as the default value for CheakBreak is true. So regardless of what you set your local CheckBreak to your program will always check for Ctrl-Break. If you need a local CheckBreak variable then to set the CRT unit CheckBreak use: CRT.CheckBreak := false; This will always set CheckBreak to false. The easist way would be to remove the definition of CheakBreak from your program. -- Tim Smith Minard 300 UUCP: ...!uunet!plains!tsmith North Dakota State University, BITNET: tsmith@plains.bitnet Fargo, ND 58105 INTERNET: tsmith@plains.NoDak.edu