Close Stack Cleanup

Bob Sneidar bobsneidar at iotecdigital.com
Thu Feb 4 18:13:39 EST 2021


It’s my understanding that I am unable to reference objects on a card of a stack in a preOpenStack handler. Referencing an object in the stack opens the stack triggering a race condition which continually triggers preOpenStack. That is from memory though.

Bob S


On Feb 4, 2021, at 2:50 PM, Tore Nilsen via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:

Performing the clean up in preOpenStack makes it happen before the stack is visible, at least according to the dictionary.

"Unlike openStack <>, preOpenStack handlers <> are executed <> before the stack window <> appears. Because of this, the preOpenStack handler <> is a good place to put code that adjusts the size, position, and appearance of objects <>; the changes are made before the stack <> appears."

My experience is that this is true.


Tore



More information about the use-livecode mailing list