X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <410D6412.485CECDD@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: strange error References: <20040723023556 DOT 15872 DOT 00001561 AT mb-m21 DOT aol DOT com> <20040723032432 DOT 19192 DOT 00002048 AT mb-m06 DOT aol DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 28 Date: Mon, 02 Aug 2004 06:02:38 GMT NNTP-Posting-Host: 12.76.143.54 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1091426558 12.76.143.54 (Mon, 02 Aug 2004 06:02:38 GMT) NNTP-Posting-Date: Mon, 02 Aug 2004 06:02:38 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Sterten wrote: >>> m55:r--;if(R[r]!=1)goto m55; >> >> I think this is the problem. r might become smaller 0. > > .. and then anything can happen depending on what just happens to > stand at that memory location. > > But this is a weakness of C when compared to > e.g. Basic, which issues an error when an index is out of the > predefined range thus helping to debug the program. > > I understand that checking the ranges might > slowdown the program, but IMO there should be at least the option > for a compiler switch to generate a slow .exe which does this. There is such a switch. I forget what it is. It's in the manual. You should not strip attributions for material you quote. -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?