If you need this sort of thing, you could get an Xtra written that does it,
but the better thing would be to author in a way that allows Director to
keep doing its normal looping. Loop around exitFrame, and create a state
machine, that you execute your calls in the exitFrame loop or you act on
idles to do your next step. Director will still be alive and will still
give time to the outside world.
- Tab
At 08:14 PM 6/12/01 +0100, LePhuronn wrote:
>I think we're getting a bit confused by the code that Pekka posted.
>
>What I think the question is is "how to quit the projector when it has
>locked up". The near-endless repeat loop was just an example of the state
>Director would be in when the quit would be required.
>
>In answer to that, as far as I know you can't. If Director has got itself
>into such a state that it is caught in a massive loop or otherwise locked up
>then you'll just have to forcibly kill the projector through the OS - no
>clean exit Lingo will be executed if the system is locked up.
>
>Alternatively, if you do use massive repeat loops that have got incorrect
>logic so they get trapped, you could always try passing control to te system
>at the end of every iteration just so Director can do other things besides
>looping through the Lingo - clean exit code WOULD be triggered in this case
>as it will have a time slice to deal with it.
>
>With this in mind, does Lingo have an equivalent to Visual Basic's
>"DoEvents" command? DoEvents does exactly what I described above - passes a
>little bit of control to the system so any events being queued up can run.
>
>If there is, code could look something like this...
>
>repeat with i = 1 to the maxInteger
> if i > 100 then
> quit
> doSomeStuff
>
> DoEvents -- the command that passes a time slice to other events
>end repeat
>
>LePhuronn
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
>email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
>Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]