Repeat Unexpectedly Aborted

Mark Schonewille m.schonewille at economy-x-talk.com
Sun Jul 30 06:20:06 EDT 2006


Hi Bridger,

If you are editing a stack in the IDE, don't expect running scripts  
to stay unaffected. If you want a script to run without interruption,  
you should create a standalone or open the stack in a different IDE  
which you don't use for editing or use the DreamCard Player for  
instance.

Is the ping handler in the card or stack script? Probably it is  
interrupted because the script is "changed" (between quotes, as I"m  
sure you didn't really change it yet). After you have opened the  
script using a shortcut, look at the Revert/Apply buttons, which are  
enabled. Somehow, Revolution considers the script edited and running  
edited though unapplied scripts throws an error. Choose Edit Card/ 
Stack Script from the Object menu and you will see that the Revert/ 
Apply handlers are disabled. Revolution does not consider the scripts  
as edited and running them doesn't throw an error.

Here are 4 bug reports I could find, related to the subject:

http://support.runrev.com/bugdatabase/show_bug.cgi?id=1530
http://support.runrev.com/bugdatabase/show_bug.cgi?id=2345
http://support.runrev.com/bugdatabase/show_bug.cgi?id=3168
http://support.runrev.com/bugdatabase/show_bug.cgi?id=3503

Let's just hope that this problem will be fixed, soon.

Best regards,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.



Op 30-jul-2006, om 7:29 heeft Bridger Maxwell het volgende geschreven:

> Hey,
>  For some reason every time I open the script editor using the  
> keyboard
> shortcut (CTRL + Shift + C (or S)) it will quit a repeat loop that is
> running, but if I open the script editor from the menubar on the  
> RevMenuBar
> stack it is fine.  This doesn't make any sense, no errors are  
> popping up,
> and try/catch setups are catching any errors.
> Here is the script I was having trouble with.  The image "Pinger"  
> is just an
> animated GIF that is of a wave of white that spreads outward in a  
> circle and
> fades away during the last 30 frames.  It is in the card script, if  
> that
> makes any difference.
>
> on ping
>  lock screen
>  set the repeatCount of img "Pinger" of me to 0
>  set the currentFrame of img "Pinger" of me to 1
>  set the blendLevel of img "Pinger" of me to 0
>  unlock screen
>    repeat with x = 1 to (the frameCount of img "Pinger" of me - 10)
>      set the currentFrame of img "Pinger" of me to x
>      wait 2 tick with messages
>      if  the abs of (x - the frameCount of img "Pinger" of me) < 30  
> then
>        put 30 - (the frameCount of img "Pinger" of me - x) into y
>        set the blendLevel of img "Pinger" of me to (y * 5)
>      end if
>    end repeat
> end ping
>
>
>  Thank You,
>    Bridger




More information about the use-livecode mailing list