Re: Bug ?
- Posted by Robert Craig <rds at EMAIL.MSN.COM> Dec 18, 1997
- 541 views
Graeme writes: > When writing the recursive fill routine (see > previous post) I tested it before adding the > "on-screen" check. Actually I was using a > virtual screen located in a sequence so it was > an "in-sequence" check. I was greeted by the > "called from ..." message > endlessly scrolling up the screen. The program > did not terminate in any length of time I was > willing to wait. (it was only a 64x64 sequence) Sounds like you had a case of "infinite recursion". Eventually you'll run out of memory, but before that happens, you might have hundreds of thousands or even a million levels of subroutine calls stacked up. It takes a while for Euphoria to unwind the entire stack, even though it will stop displaying messages after a hundred levels and eventually say "skipping 1000000 levels" or something. On my Pentium-150 it took an extra 20 seconds after the messages first appeared before it finally gave me the DOS prompt. Regards, Rob Craig Rapid Deployment Software