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

Bob Sneidar bobsneidar at iotecdigital.com
Wed Oct 26 10:51:48 EDT 2016


I always use dispatch unless I need to send in time.

Bob S


On Oct 25, 2016, at 15:31 , Mark Talluto <mark at canelasoftware.com<mailto:mark at canelasoftware.com>> wrote:

On Oct 25, 2016, at 10:18 AM, Richard Gaskin <ambassador at fourthworld.com<mailto:ambassador at fourthworld.com>> wrote:

Dr. Hawkins wrote:

I (like I assume many others) have a number of places with blocks like

send doIt to stack worker in 0
wait 0 with messages
doSomethingElse

I'm seeing a situation in which the code hits "DoSomethingElse"
before the "doIt" happens.

If you want to ensure "doIt" happens before the calling handler continues, why not just remove the "in 0" clause?

You might consider using 'dispatch' instead of 'send' if you really want it to execute the moment that line shows up. I read somewhere the dispatch is more performant anyways.

Best regards,

Mark Talluto
livecloud.io<http://livecloud.io/>
canelasoftware.com<http://canelasoftware.com/>




More information about the use-livecode mailing list