Page 1 of 1

How to stop a running program/application in LC?

Posted: Sun Jul 03, 2016 7:00 pm
by ValiantCuriosity
OK, I know this is a completely ridiculous question. :shock: In fact, I'm a bit embarrassed to ask it!

However, I've searched the LC menus, the internet, the docs, the dictionary, the myriad of mixed and jumbled LC documents and can't find a simple answer. There are times when running a script in LC when there is an error. The code editor opens and the tools bar disappears. The only way that I have found to get out of the running program/application is to close LC down. When I reopen the same application, it is still running and there is still no toolbar to use to end the program. I've found some shortcut keys and tried them, but AFAIKT, none have done a thing.
i.e. Debugger:
Stop: Shift-F5
Abort:Command-

Can someone answer this question for me? I sure wish there was some consistent, solid documentation all in one place that would give up some of these LC secrets. :wink: I've never seen so much jumping around in documentation. Hoping I'll catch on eventually.

TIA in advance for your help.

-Rachel

Re: How to stop a running program/application in LC?

Posted: Sun Jul 03, 2016 7:53 pm
by jmburnod
Hi Rachel,
if i understand you correctly i think you have to click to the blue square at the right of the green rectangle to stop debugging process.
Best regards
Jean-Marc

Re: How to stop a running program/application in LC?

Posted: Sun Jul 03, 2016 8:06 pm
by ValiantCuriosity
Jean-Marc,

I tried that and the tools bar still doesn't show. The script continues to run. Any other ideas on how to stop a script/application that is running when the tools bar isn't visible :?:

TIA,
-Rachel

Re: How to stop a running program/application in LC?

Posted: Sun Jul 03, 2016 10:36 pm
by jmburnod
Rachel,
When you click the blue rectangle, you can close the script window and the toolbar should be visible.

Re: How to stop a running program/application in LC?

Posted: Mon Jul 04, 2016 8:28 am
by AndyP
Hi Rachel,

It may be that you have an infinite loop running in your script which is locking you out from the normal message path?

if so you can


1. Turn the messages off on the tool bar using the envelope icon to the left of the errors icon
before you open your stack. Then open your stack and fix the loop and then turn back on messages.

2. Try shortcuts to exit a running script. Windows Ctrl + . Mac Command + .

3. If the infinite loop was the problem then its always good practice to add "with messages" within the loop which allows the exit messages to be easier trapped.

Hope this helps.

Re: How to stop a running program/application in LC?

Posted: Mon Jul 04, 2016 10:07 am
by MaxV
http://livecode.wikia.com/wiki/How_to_s ... able_stack

it's a pulic wiki, anybody may add other tricks.

Re: How to stop a running program/application in LC?

Posted: Wed Jul 06, 2016 6:26 am
by ValiantCuriosity
Thanks everyone for your help.

Oddly enough, when I cleaned the library -->livecode7.rev file as instructed by support in regards to another issue, this did seem to take care of the problem with the toolbar and code editor. At least, I haven't seen the error again recently. I'm keeping my fingers crossed.

-Rachel