Page 1 of 1

Dispatch to own card locks up LC901

Posted: Wed Sep 26, 2018 12:15 pm
by sphere
Hi,
so i was doing a dispatch from a button to the card where it was on.
Of course this is absolutely nonsense and i don't know why i did it. What the h*ll was i thinking...

So LC901 IDE and the standalone locked up. So investigating why, it was the dispatch in the button to a handler in the card script.
Due to my think fault i did a dispatch, but of course it is not needed.
So removed it and all is working ok.

But is this a bug or not or is it just plain programming fail(the latter also), because LC locks up?

Sphere

Re: Dispatch to own card locks up LC901

Posted: Wed Sep 26, 2018 12:37 pm
by LiveCode_Panos
Hello Jerry,

Using dispatch from a button to its own card should not cause a lock up. In fact I just tried it, and LC (9.0.1) does not lock up for me.

If you can reproduce this reliably, you can file a bug report with a sample stack and we will investigate further.

Kind regards,
Panos
--

Re: Dispatch to own card locks up LC901

Posted: Wed Sep 26, 2018 8:35 pm
by sphere
Hi Panos,

i copied the stack and removed that dispatch.
Then i added it again to see what happens. Of course, now i can't replicate.

So loaded the previous stack, and this one still locks up.
Except for that line with dispatch, the stacks are the same.

I also removed the rev prferences file to see if that was of any help, but it does net make any difference.

The handler which is called by the dispatch uses the contents of a globalvariable, base64decodes them, then decrypts them and put them into their fields. Just as check after it has been saved(via php), so quickly retrieve them again(also php). And then go thru that handler.

So in short, i can't replicate. But the original stack with the command in it still does. Even as standalone.
It's on win10 (don't know if that matters). I can check on Linux and Mac too (triple boot).

***edit*** I did test the same stack on Linux Ubuntu Mate 18 and on MacOs High Sierra, but it only locks up on Windows10. All tested with LC901 Community.

Do you want me to send that stack to you?

Thanks!
Kind regards,
Jerry

Re: Dispatch to own card locks up LC901

Posted: Fri Sep 28, 2018 8:48 am
by LiveCode_Panos
Hello Jerry,

Thank you for the update. Yes sure, you can send the stack to panos.merakos@livecode.com and we will investigate.

Best regards,
Panos
--

Re: Dispatch to own card locks up LC901

Posted: Fri Sep 28, 2018 12:11 pm
by sphere
Hi Panos,

ok will do.

Best regards,
Jerry