Page 1 of 1

Delete Card in LC 9 problem

Posted: Mon Jun 18, 2018 10:42 pm
by Entdecker
hi guys,
in LC 9 it's not possible to delete a card, when an object script is execution. In LC 7 was that possible.

So, how can I find all scripts is execution (in the background) and how can I stop them?

On my stack I have a clock, which is show on all cards.
on moveTime
...
send "moveTime" to me in 999 milliseconds
end moveTime

The field with the time a part of a group, which is a shared group and behave like a background. There for I can't delete it with delete it for all other cards as well.

How can I solve this problem?

Re: Delete Card in LC 9 problem

Posted: Tue Jun 19, 2018 12:02 am
by dunbarx
Hi.

In v. 8 a command to delete a card would be queued until a running handler ends. Likely in v9 as well.

But you are correct. In v7 the command could be executed while the handler was running.

Feature, hassle or bug?

Craig Newman

Re: Delete Card in LC 9 problem

Posted: Tue Jun 19, 2018 9:45 pm
by jacque
If you think the clock is the problem, remove it before deleting the card. I assume it's placed on every card, so something like this:

Code: Select all

remove group "clock" from this card
delete this card

Re: Delete Card in LC 9 problem

Posted: Tue Jun 19, 2018 10:08 pm
by Entdecker
Hi Jacque,
thats sounds very well. I found an other way by stoping the clock before and restart it after the deleting.

But I still can't understand why DELETE CARD in the IDE (Editor) delete the card, when the clock is still ticking, als the command DELETE THIS CARD can't do it (anymore). Tricky for beginners.

Best regards, Jens.

Re: Delete Card in LC 9 problem

Posted: Tue Jun 19, 2018 10:27 pm
by jacque
Your way is good too. I suspect the IDE is trying to make things "easier" for us by managing running scripts itself. The IDE uses frontscripts, which intercept messages before your own scripts get them.