Re: Strange script error - pass openStack

2021-09-23 Thread Curry Kenworthy via use-livecode


Craig:

> I will indeed get an error in the message box
> if I just invoke “openStack” directly.

So Peter, make sure whether this bug is your original issue,
and not just a red herring from the debugging itself.

Either way:

> 3. But the home.livecodescript code could be more robust.
> (Always ensure a target and owner exist before accessing properties.)
> You could QA report that as a possible IDE bug.

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
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


Re: Strange script error - pass openStack

2021-09-23 Thread Craig Newman via use-livecode
Hi.

You are getting the error message in the message box?

If I make a new stack and place your handler in the card script, I will indeed 
get an error in the message box if I just invoke “openStack” directly. Of 
course, if I

“send openStack to this card”

all works fine. Placing a red dot should not be pertinent. Placing the handler 
in the stack script works as advertised. I guess I am not clear about what you 
are seeing.

Craig

> On Sep 23, 2021, at 8:31 AM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Peter:
> 
> > I’ve just tried making a new stack that has:
> 
> > on openStack
> >pass openStack
> > end openStack
> 
> 1. Make sure this openStack is in your first CARD's script.
> 
> > I poked into the script of the stack home.livecodescript
> > and see these lines
> 
> > if the short name of the owner of the target is not "Home" then
> > pass openStack
> > end if
> 
> 2. You (or another open stack) may have done something unusual.
> I'm not 100% convinced you've found the problem yet.
> There are a few inconsistent details in your message,
> plus it seems that LC did not pinpoint the offending code line?
> 
> 3. But the home.livecodescript code could be more robust.
> (Always ensure a target and owner exist before accessing properties.)
> You could QA report that as a possible IDE bug.
> 
> Meanwhile, don't pass openStack and see if you still get an error!
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> 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


___
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


Re: Strange script error - pass openStack

2021-09-23 Thread Curry Kenworthy via use-livecode


Peter:

> I’ve just tried making a new stack that has:

> on openStack
>pass openStack
> end openStack

1. Make sure this openStack is in your first CARD's script.

> I poked into the script of the stack home.livecodescript
> and see these lines

> if the short name of the owner of the target is not "Home" then
> pass openStack
> end if

2. You (or another open stack) may have done something unusual.
I'm not 100% convinced you've found the problem yet.
There are a few inconsistent details in your message,
plus it seems that LC did not pinpoint the offending code line?

3. But the home.livecodescript code could be more robust.
(Always ensure a target and owner exist before accessing properties.)
You could QA report that as a possible IDE bug.

Meanwhile, don't pass openStack and see if you still get an error!

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
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


Strange script error - pass openStack

2021-09-22 Thread Peter Bogdanoff via use-livecode
In trying to debug a problem with my music program, at one point I got an error 
dialog:

Message execution error:
Error description: Object Name:
Hint: stack "/Applications/LiveCode Business 
9.6.1.app/Contents/Tools/Toolset/home.livecodescript”

So, I tried stepping through an openStack handler I have, and sure enough, once 
I passed the “pass openStack” I saw that same error in the Message box.

I’ve just tried making a new stack that has:

on openStack
   pass openStack
end openStack

with the red break on the line "pass openStack", and the same error showed in 
the Message box.

I poked into the script of the stack home.livecodescript and see these lines

if the short name of the owner of the target is not "Home" then
pass openStack
end if

I add a line before that: put “foo”
After the dialog is closed the Message box shows:
Message execution error:
Error description: Chunk: no target found

Question 1 — should this be happening—me seeing a livecodescript error—and can 
it affect my openStack handler, or the total operation of my stack?
Question 2 — should I be passing openStack on from my project? I’ve been doing 
that since HyperCard days and never thought a second about it.

LC 9.6.4

Peter Bogdanoff
___
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