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
-
richmond62
- Livecode Opensource Backer

- Posts: 10097
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Mon Feb 13, 2023 9:30 pm
Why does this:
Code: Select all
on mouseUp
open stack "Dia"
end mouseUp
while opening the substack "Dia", also throw a 'bluey'?
-
-
richmond62
- Livecode Opensource Backer

- Posts: 10097
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Mon Feb 13, 2023 9:34 pm
And, by-the-by: this has happened both on MacOS 10.7.5 with LC 8.1.10 and on MacOS 13.2.1 with LC 9.6.3.
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10317
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Mon Feb 13, 2023 9:43 pm
Is there such a stack? I open (or go to) stacks all the time. I bet you do as well.
Does this not throw en error?
Code: Select all
on mouseUp
if there is a stack "dia" then open stack "Dia"
end mouseUp
Craig
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10317
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Mon Feb 13, 2023 10:14 pm
Richmond.
It just occurred to me. If the stack is not in memory, you must specify a file path to wherever it lives.
Craig
-
richmond62
- Livecode Opensource Backer

- Posts: 10097
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Tue Feb 14, 2023 8:09 am
The substack, 'Dia', is a substack of the mainstack, so, according to the documentation, thè stack should open (which it does) and not throw up an error message.
There is NO error in the script.
-
stam
- Posts: 3070
- Joined: Sun Jun 04, 2006 9:39 pm
Post
by stam » Tue Feb 14, 2023 11:44 am
I open substacks this way all the time with no issues whatsoever.
On the other hand, I often find that exceptions raised are often ether not entirely accurate or too vague to be of use, so the actual error report isn't always that helpful. For example if something is crashing with geometry manager, you get completely nonsense errors (or no error but it crashes).
Might there be an open/preOpen stack/card handler in the substack that is causing the error? Or something else in the substack?
To test it why don't you try creating a new empty substack and repeat the process? I'd wager you do not see this problem with a new empty substack.
S.
-
richmond62
- Livecode Opensource Backer

- Posts: 10097
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Tue Feb 14, 2023 12:19 pm
I am sure it was a script in the substack: having modified that
there have been no further problems.
I does say something about the standard of error reporting, though.
-
stam
- Posts: 3070
- Joined: Sun Jun 04, 2006 9:39 pm
Post
by stam » Tue Feb 14, 2023 2:03 pm
It’s a known issue and one I think they plan to address with the engine change that will allow compiled scripts…