Terrible situation: I can't open my program

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Josh1910
Posts: 19
Joined: Tue Jan 20, 2015 7:30 am

Terrible situation: I can't open my program

Post by Josh1910 » Thu Jan 19, 2017 9:28 am

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?

Josh1910
Posts: 19
Joined: Tue Jan 20, 2015 7:30 am

Re: Terrible situation: I can't open my program

Post by Josh1910 » Thu Jan 19, 2017 9:41 am

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

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Terrible situation: I can't open my program

Post by MaxV » Thu Jan 19, 2017 2:04 pm

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

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: Terrible situation: I can't open my program

Post by AndyP » Thu Jan 19, 2017 2:10 pm

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.
Andy .... LC CLASSIC ROCKS!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Terrible situation: I can't open my program

Post by jacque » Thu Jan 19, 2017 5:17 pm

MaxV wrote:You can't open a stack with LockMessages true:
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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply