Page 2 of 2
Re: What happen the stack handlers "Open" and "PreOpen"?
Posted: Tue May 26, 2020 10:54 am
by bogs
I dunno, sure looks like it works here (LC 9.5 on nix). Open this, set the break point on the handler, then run the handler (green arrow on top of the debugger).
If your feeling super lazy, don't bother setting the breakpoint, I made sure you will either see a result or get a message when it runs
Re: What happen the stack handlers "Open" and "PreOpen"?
Posted: Tue May 26, 2020 5:43 pm
by FourthWorld
The problem isn't that the messages aren't firing. The OP describes the issue as the message names not appearing in the list of relevant messages in the left column of the Script Editor.
More details in the report:
https://quality.livecode.com/show_bug.cgi?id=22747
Re: What happen the stack handlers "Open" and "PreOpen"?
Posted: Tue May 26, 2020 7:32 pm
by richmond62
Indeed.
-
-
9.6.0 rc-2 Community
MacOS 10.15
openStack and
preOpenStack both 'there'.
Re: What happen the stack handlers "Open" and "PreOpen"?
Posted: Tue May 26, 2020 7:42 pm
by bogs
FourthWorld wrote: Tue May 26, 2020 5:43 pm
The problem isn't that the messages aren't firing. The OP describes the issue as the message names not appearing in the list of relevant messages in the left column of the Script Editor.
If that was directed at my post, I wasn't posting in response to the OP's post, but Richmond's, which said -
richmond62 wrote: Tue May 26, 2020 10:30 am
They just don't work, while
preOpen and
open in a card do.
Err . . . possibly the LiveCode 'thang' has
become so complicated that loading
it into the memory means there is
some sort of problem with doing stuff before the stack is displayed on screen.
Now, since I'm pretty sure just removing them from the 'prepared' left column didn't completely debilitate them, and as that stack (should* ) show they do in fact work, maybe Richmond will post a stack showing them *not* working, which truly would be bug report material, heh.
Re: What happen the stack handlers "Open" and "PreOpen"?
Posted: Tue May 26, 2020 7:44 pm
by FourthWorld
Richmond, are you looking at the list of handlers that appears when editing a card script, or a stack script? Both this OP and the report note that the openStack and preOpenStack messages are absent from the list when editing a stack script, as confirmed in the report by Panos.
Re: What happen the stack handlers "Open" and "PreOpen"?
Posted: Tue May 26, 2020 7:44 pm
by richmond62
OK: you got me there: looking in
cardScript.
Indeed: no sign in the
stackScript.
And, Yes: never seen this before:
-

- Screenshot 2020-05-26 at 21.46.36.png (20.34 KiB) Viewed 3961 times
But "there it is" in the Documentation:
-
-
It does appear rather more restricted than
openStack or
preOpenStack.
Re: What happen the stack handlers "Open" and "PreOpen"?
Posted: Tue May 26, 2020 7:51 pm
by richmond62
Mind you;
to be fair, startup is 'there' in the LC 8.1.10 Documentation.

Re: What happen the stack handlers "Open" and "PreOpen"?
Posted: Tue May 26, 2020 7:59 pm
by richmond62
-
Code: Select all
on preOpenStack
put "preOpenStack fired" into fld "ff"
end preOpenStack
on openStack
put "openStack fired" into fld "gg"
end openStack
All seems as it should be in 9.6.0 rc-2