Page 1 of 1
Terrible situation: I can't open my program
Posted: Thu Jan 19, 2017 9:28 am
by Josh1910
It just hangs with an hourglass. Other LC programs open, but not the one that I've spent a week working on. I'm guessing some repeat loop is automatically starting on program launch which is causing the hang, but I don't have any idea. Is there any way to alter the code some way to gain access to the program again?
Re: Terrible situation: I can't open my program
Posted: Thu Jan 19, 2017 9:41 am
by Josh1910
Problem address with this code:
on mouseUp
answer file "open" -- select your stack
if it = empty then exit mouseup
set the lockmessages to true
open stack it
set the lockmessages to false
end mouseUp
from one of the many heroes on this forum:
http://forums.livecode.com/viewtopic.ph ... ng#p102826
Re: Terrible situation: I can't open my program
Posted: Thu Jan 19, 2017 2:04 pm
by MaxV
You can't open a stack with
LockMessages true:
If the lockMessages property is set to true, the following are not sent:
- Navigation messages (such as openCard, closeStack, and so on)
- ...
Re: Terrible situation: I can't open my program
Posted: Thu Jan 19, 2017 2:10 pm
by AndyP
Try these options
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: Terrible situation: I can't open my program
Posted: Thu Jan 19, 2017 5:17 pm
by jacque
You can open stacks, there are just no messages sent. In this case that's exactly what we'd want because the messages are running handlers that cause a hang.
It's convenient enough that LC puts the feature in the toolbar. I frequently open stacks that way while debugging a client's work.