What happen the stack handlers "Open" and "PreOpen"?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: What happen the stack handlers "Open" and "PreOpen"?

Post by bogs » Tue May 26, 2020 10:54 am

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 :P
crazyPreOpen.livecode.zip
It is just crazy baby....
(1.02 KiB) Downloaded 143 times
Image

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: What happen the stack handlers "Open" and "PreOpen"?

Post by FourthWorld » 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.

More details in the report:
https://quality.livecode.com/show_bug.cgi?id=22747
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: What happen the stack handlers "Open" and "PreOpen"?

Post by richmond62 » Tue May 26, 2020 7:32 pm

Indeed.
-
Screenshot 2020-05-26 at 21.29.50.png
-
9.6.0 rc-2 Community

MacOS 10.15

openStack and

preOpenStack both 'there'.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: What happen the stack handlers "Open" and "PreOpen"?

Post by bogs » Tue May 26, 2020 7:42 pm

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.
Image

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: What happen the stack handlers "Open" and "PreOpen"?

Post by FourthWorld » Tue May 26, 2020 7:44 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: What happen the stack handlers "Open" and "PreOpen"?

Post by richmond62 » Tue May 26, 2020 7:44 pm

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
Screenshot 2020-05-26 at 21.46.36.png (20.34 KiB) Viewed 2431 times
But "there it is" in the Documentation:
-
Screenshot 2020-05-26 at 21.48.49.png
-
It does appear rather more restricted than openStack or preOpenStack.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: What happen the stack handlers "Open" and "PreOpen"?

Post by richmond62 » Tue May 26, 2020 7:51 pm

Mind you; to be fair, startup is 'there' in the LC 8.1.10 Documentation. 8)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: What happen the stack handlers "Open" and "PreOpen"?

Post by richmond62 » Tue May 26, 2020 7:59 pm

Screenshot 2020-05-26 at 21.57.08.png
-

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
Attachments
preOpen.livecode.zip
Here's the stack.
(959 Bytes) Downloaded 119 times

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”