Thank you.

In a future Livecode Global you should do a series on "How the Engine Actually Works" :-)


On 12/21/2022 8:00 AM, Mark Waddingham via use-livecode wrote:
On 2022-12-20 18:27, Paul Dupuis via use-livecode wrote:
If someone switches to another applications (so a suspendStack is
executes and does the currently executing script get suspended?) and
then back to a different window/stack, could that also change the
defaultStack for the currently executing script when it resumes? It's
just another real=world user behavior we see with people using our
research tool.

No that shouldn't affect things - the way the engine calls handlers responding to an event is such that the defaultStack will always be restored to what it was before the handler is called.

The way pending messages are dispatched is such that it will only restore the defautlStack if it is the same as the stack it was when the handler was entered.

Warmest Regards,

Mark.



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to