Re: New "maxstatements" feature suggestion

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

Alan Oxley wrote:
> 
> Hello!
> Occasionally I make mistakes with loops and my program grabs 99% CPU.
> Entirely my fault of course. But, its hard to get the operating system 
> to break in and abort the program. Some languages allow a max statement
> count to be specified so that the program halts itself as soon as this
> max is reached. Any chance of this being added? Since euphoria has
> profiling, there is a statement counter in place to check against, yes?

Doing this would slow every program down. A better way which I sometimes use is
to simply place a ?1 at the top of the program. That way you can kill a
misbehaving program using Ctrl C. If you've got trace(3) running it will even
tell you where it got stuck.

Regards,
Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu