time out and abort

FBS (freeBASIC script) is an interpreter for FbCadCam macros and a server side script engine.

Moderators: kitty_webb, Ywsp, joanCruz03, yajra1219, Jayem, shela

Post Reply
owen
Site Admin
Posts: 642
Joined: Thu Apr 13, 2017 12:14 pm

time out and abort

Post by owen » Mon Sep 23, 2019 5:38 am

i added a run time limit of 3 seconds and an abort on error feature

the interpreter will exit if it takes to longer then 3 seconds in do loops and for next loops.

in order to allow the interpreter to run longer then 3 seconds adjust the value of the time_out variable in the init sub routine.

if there is an error the on error abort is called and the interpreter simply ends (printing a message that an error has occurred)

owen
Site Admin
Posts: 642
Joined: Thu Apr 13, 2017 12:14 pm

Re: time out and abort

Post by owen » Mon Sep 23, 2019 2:56 pm

In the event of an error trying to figure out if the error is caused by The Script or The Interpreter...

Well here's what you can do.

First verify that you can compile your script with the free basic compiler. If it compiles without errors then more than likely the error is caused by The Interpreter.

And if you're not able to debug The Interpreter and you can always email me opreese at gmail

Send me your script and I'll try to figure it out and update the Interpreter
.

Post Reply