Mail Archives: djgpp/1997/09/05/11:33:52
firewind (firewind AT metroid DOT dyn DOT ml DOT org) wrote:
: This post is off-topic for comp.os.msdos.djgpp. Next time, try posting to
: alt.mindreading.programmers, or actually including the problem code.
Thanks to all those who helped (rather than making facetious comments:
there would have been no point including the source code as there was over
50K of it, and almost any change - such as trying to isolate the faulty
section - caused the problem to go away).
The problem was, indeed, an uninitialised array as I and most of those who
made helpful comments had guessed. The reason it had gone undetected was
that (for historical reasons) the initial contents of the array were always
multiplied by zero. Hence any valid number (except infinity) in the
uninitialised array was OK, but invalid numbers triggered an exception.
Richard.
- Raw text -