Re: New "maxstatements" feature suggestion
- Posted by Bernie Ryan <xotron at bluefrog.com> Jun 08, 2007
- 678 views
Alan Oxley wrote: > > Your suggestion works for the programmer while developing/debugging. > I'd like a solution where a enduser won't have his machine locked > up due to a bug in a GUI. Users put in strange parameters/criteria that I > don't > think of, and its therefore not covered. > Alan: Simply put a constant at the top of your program. constant MAXLOOP = 10 integer ctr Then when you have a loop that your concern about put a test to exit or abort(). if MaxLoop = ctr then exit else ctr += 1 end if Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan