Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

Patch for suspend / interrupt long executing script

Last post 04-28-2008, 2:33 PM by ats. 2 replies.
Sort Posts: Previous Next
  •  04-27-2008, 11:06 AM 2465

    Patch for suspend / interrupt long executing script

    Some months ago I made some smaller changes to SQVM.cpp to enable breaking a script that executes for a long while (which otherwise hangs the app).

    The technique is to call an app specified callback, when VM execution 'jumps back' (ie, end of loop, or return statement). The app callback can then return a value to indicate continue / suspend / interrupt. It's been working fine since then.


    Can I upload this patch to a Wiki page? I attempted to create a Wiki user, but the web software just gave error messages.

    Regards
    // ATS.
  •  04-28-2008, 4:04 AM 2466 in reply to 2465

    Re: Patch for suspend / interrupt long executing script

    you don't need a login to change the wiki. Just double click the page and insert the captcha code(the bitmap with the numbers on the right of the edit page).

    Alberto

  •  04-28-2008, 2:33 PM 2468 in reply to 2466

    Re: Patch for suspend / interrupt long executing script

    Done. The Squirrel Wiki page now contains a new page Patches.

    Feel free to try it out.

    Regards
    // ATS
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems