Re: New "maxstatements" feature suggestion

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu