For a simple debugging purposes, I inserted an INPUT statement into a
piece of repeated code, finding that the program stalled and quit
unexpectedly
after a few dozen repetitions. It took me quite some time to find out
that the code I was testing was OK, but the reiteration of the INPUT
statement itself caused the stalling. I haven't been able to find any
reference to this in the old postings.
Incidentally, the stalling only occurs when using console window. So
it may seem as a rather obscure bug. But it cost me quite a lot of
time and energy trying to find (nonexistent) errors in my code
before I found out about it.
This will demonstrate the behaviour:
-----
include "ConsoleWindow"
dim as str255 h
dim as short k
k=1
do
input h
print k
inc(k)
until h = "@" // as a way out
-----
On my machine (10.5.8), the program will stall after 56 repeats,
showing this error message:
Any comments/remedies?
Anyway, be warned ;-)
Regards,
Dan
Attachments: