YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

New Topic Post Reply
Patch for suspend / interrupt long executing script
ats
#1 Posted : Sunday, April 27, 2008 11:06:08 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/17/2007(UTC)
Posts: 132

Thanks: 0 times
Was thanked: 2 time(s) in 2 post(s)
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.
fagiano
#2 Posted : Monday, April 28, 2008 4:04:16 AM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/11/2005(UTC)
Posts: 1,063

Thanks: 0 times
Was thanked: 82 time(s) in 63 post(s)
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

Follow me on Twitter @squirrellang
ats
#3 Posted : Monday, April 28, 2008 2:33:56 PM(UTC)
Rank: Member

Groups: Registered
Joined: 1/17/2007(UTC)
Posts: 132

Thanks: 0 times
Was thanked: 2 time(s) in 2 post(s)
Done. The Squirrel Wiki page now contains a new page <a href="http://wiki.squirrel-lang.org/default.aspx/SquirrelWiki/Patches.html"><b>Patches</b></a>.

Feel free to try it out.

Regards
// ATS
Guest
#4 Posted : Thursday, July 28, 2011 6:44:33 AM(UTC)
Rank: Guest

Groups:

Thanks: 0 times
Was thanked: 1 time(s) in 1 post(s)
Message was deleted by User.
Guest
#5 Posted : Thursday, July 28, 2011 6:45:42 AM(UTC)
Rank: Guest

Groups:

Thanks: 0 times
Was thanked: 1 time(s) in 1 post(s)
Message was deleted by User.
Quick Reply Show Quick Reply
Users browsing this topic
Guest
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.039 seconds.