Terrible situation: I can't open my program
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Terrible situation: I can't open my program
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
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
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
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)
- ...
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Terrible situation: I can't open my program
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.
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.
Andy .... LC CLASSIC ROCKS!
Re: Terrible situation: I can't open my program
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.MaxV wrote:You can't open a stack with LockMessages true:
It's convenient enough that LC puts the feature in the toolbar. I frequently open stacks that way while debugging a client's work.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com