delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/07/21/04:15:25

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Lines: 21
X-Admin: news AT aol DOT com
From: sterten AT aol DOT com (Sterten)
Newsgroups: comp.os.msdos.djgpp
Date: 21 Jul 2004 08:09:48 GMT
References: <20040721024308 DOT 25600 DOT 00002362 AT mb-m29 DOT aol DOT com>
Organization: AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com
Subject: Re: strange error
Message-ID: <20040721040948.06719.00001805@mb-m13.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

ahhh..

I think I figured out where the problem is.
Yes, it was probably a program bug, mea culpa.
Earlier this morning I would have bet
3:1  that it's not !

I have always been using things like
R[99}={0};
thinking that all 99 entries of the array are initialized with 0, but
apparantly only the
first value is zero while the others are undefined and (almost) unpredictable.
Still strange to watch, how compiler switches
or small program changes influence
 the (non-)initialized values of R[]
when the program is run.

Amazing, that so many of my programs worked correctly in the past, although
I often used this "bug".

--Guenter.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019