sluggishness of 8.1.1 on send in 0/wait 0 pairs?

Monte Goulding monte at appisle.net
Tue Oct 25 16:30:24 EDT 2016


> On 26 Oct. 2016, at 6:55 am, Dr. Hawkins <dochawk at gmail.com> wrote:
> 
> *unless* there is an opportunity to execute it, such as (exclusively?)
> "Wait with messages", at which point the message due is supposed to be
> checked.
> 
> send in time is supposed to return a message queue id of the message,
> meaning it's already supposed to, well,  be in the queue

Send in time has does not guarantee when a message will be sent. It’s ASAP after the event time. If there is a pending message that should be handled before the message you sent then it will be handled and then you will run out of time because you are only waiting 0. If you need to guarantee that you are waiting until the message is sent then do something like:

local sHandled

on Foo
    put false into sHandled
    send “Bar” to me in 0
    wait until sHandled with messages
    — do something else
end Foo

on Bar
   put true into sHandled
end Bar


More information about the use-livecode mailing list