Best way to repeat on a timer?

Dar Scott dsc at swcp.com
Fri Aug 8 10:58:00 EDT 2003


On Friday, August 8, 2003, at 08:03 AM, RGould8 at aol.com wrote:

> The problem I'm having is that, while this seems to work, it makes 
> dragging the application window very jittery when the app is running.  
> I suspect this is because I might be creating a memory-hogging timer 
> loop.  Here's what I'm doing:
>
> on opencard
>      send "checkstatus" to this stack
> end opencard
>
>
> on checkstatus
>      put shell(unixcallgoeshere) into field "status result"
>      send "checkstatus" to this stack in 3 seconds
> end checkstatus
>

Is this a stack script?  Each time you open a card, you start a new 
cycle.  After a while you will have lots.  Select the message watcher 
on the message box to illustrate.  Have open card check to see if this 
has been started.

You might want a way to turn this off, too.

This will also apply if this is on a card script, if you have other 
cards.

Other than that, it looks fine.

Dar Scott






More information about the use-livecode mailing list