Open Stack, LC exits

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
asawyer13
Posts: 53
Joined: Sun Jun 24, 2007 4:47 pm

Open Stack, LC exits

Post by asawyer13 » Thu Jun 06, 2013 6:43 pm

I am trying to open my stack. I hve clicked on Edit mode first to make sure I'm in edit mode.

I open the stack, then LC closes.

I do have a quit in my "on openstack" at the end, but I'm not sure if somehow that's causing the issue.

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Open Stack, LC exits

Post by Klaus » Thu Jun 06, 2013 6:48 pm

HI asawyer13,
asawyer13 wrote:I am trying to open my stack. I hve clicked on Edit mode first to make sure I'm in edit mode.
I open the stack, then LC closes.
I do have a quit in my "on openstack" at the end, but I'm not sure if somehow that's causing the issue.
well, what if not this? :-D

1. You can use the message box: lock messages; go stack "the/one/that/quits.livecode"
OR
2. Select menu: "Development" -> "Suspend Development Tools"
Whcich does basically the same, but you need to click "Restore Development Tools" later after opening your "quitting" stack.


Best

Klaus

asawyer13
Posts: 53
Joined: Sun Jun 24, 2007 4:47 pm

Re: Open Stack, LC exits

Post by asawyer13 » Thu Jun 06, 2013 6:52 pm

I tried the Suspend Development Tools because I thought I saw that on another post, however once I do that, LC is gone except for the message box that says "restore development tools", so I can't actually open the stack????

asawyer13
Posts: 53
Joined: Sun Jun 24, 2007 4:47 pm

Re: Open Stack, LC exits

Post by asawyer13 » Thu Jun 06, 2013 6:55 pm

But the first method you suggested, worked.

Is there a more proper way to have a quit in the stack but not have it cause a problem?

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Open Stack, LC exits

Post by Klaus » Thu Jun 06, 2013 7:07 pm

Well, QUIT means QUIT! No way to change this fact :-D

You could add this to our script so you can open and edit the stack in the LC IDE:

Code: Select all

...
if the environment <> "development" then
  quit
end if
...
:-)

Best

Klaus

asawyer13
Posts: 53
Joined: Sun Jun 24, 2007 4:47 pm

Re: Open Stack, LC exits

Post by asawyer13 » Thu Jun 06, 2013 7:08 pm

Klaus
I understand what you are saying, but most programming languages when you actually open the program to make changes, it doesn't actually run the program....

LC is new to me, but I will understand it's nuances eventually. Thanks for your help.

Alan

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Open Stack, LC exits

Post by mwieder » Thu Jun 06, 2013 8:10 pm

Alan- why do you want your stack to quit as soon as it opens? That's what you're telling it to do.

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Open Stack, LC exits

Post by Klaus » Thu Jun 06, 2013 8:44 pm

Hi Mark,
mwieder wrote:Alan- why do you want your stack to quit as soon as it opens? That's what you're telling it to do.
check this: http://forums.runrev.com/phpBB2/viewtop ... =7&t=15443


Best

Klaus

dave_probertGA6e24
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 328
Joined: Mon Dec 05, 2011 5:34 pm
Location: Thailand
Contact:

Re: Open Stack, LC exits

Post by dave_probertGA6e24 » Fri Jun 07, 2013 2:36 am

Hi Alan,

Can't agree with you more about the weirdness of having a program run as soon as you try to edit it - it's utterly silly in so many ways! But, as you and I are the only 2 people in the whole LC community who seem to see this craziness, we have to put up with it.

Things you will have to get used to:
Save often! I mean more than usual in an IDE. There are things that you can type that might cause the whole thing to lock up/crash at the least expected time.
Backup your .livecode file often! Once you have something you are happy with then make a copy of the file - just to be on the safe side.
Be vary careful with automatic sending of messages when you are editing. If you half change some code in something that is going to be called in the background then switch off Messages (int the tool bar) before you 'Apply' the code. Then Save.
Wear a Wig. The IDE WILL lock up at some point. The wig will help you retain some of your hair - unless you are already bald, of course!
Save your file again. It really doesn't cost much to save the file again. Do it before you hit that Run (browse) button - Always!

There is more - but I will leave you to discover them. That's why the Wig is a good idea!!

Once you get into the routines then the actual programming with LC becomes quite pleasant and productive. Almost enjoyable!

Cheers,
Dave
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Open Stack, LC exits

Post by mwieder » Fri Jun 07, 2013 2:52 am

Klaus- thanks for the context. That does make sense now.

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Open Stack, LC exits

Post by Klaus » Fri Jun 07, 2013 10:07 am

Hi Dave,
Wear a Wig. The IDE WILL lock up at some point. The wig will help you retain some of your hair - unless you are already bald, of course!
you definitively made my day! :-D


Best

Klaus

asawyer13
Posts: 53
Joined: Sun Jun 24, 2007 4:47 pm

Re: Open Stack, LC exits

Post by asawyer13 » Fri Jun 07, 2013 10:12 am

I'm pretty much bald so a wig is my only hope.
lol

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Open Stack, LC exits

Post by jacque » Fri Jun 07, 2013 7:13 pm

Not needing to compile before running is actually promoted as a feature of LiveCode. It does take a little getting used to if you're coming from more traditional languages, but it's easy to click the Messages button before opening a stack if that's the behavior you want. You can have your cake and eat it too. :)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

asawyer13
Posts: 53
Joined: Sun Jun 24, 2007 4:47 pm

Re: Open Stack, LC exits

Post by asawyer13 » Fri Jun 07, 2013 7:17 pm

Now that I understand how it works, I think it will be fine.

I did also have to stop hiding the stack when I was in development also..

It's kind of crazy, but I can deal with it.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Open Stack, LC exits

Post by FourthWorld » Fri Jun 07, 2013 7:28 pm

jacque wrote:Not needing to compile before running is actually promoted as a feature of LiveCode. It does take a little getting used to if you're coming from more traditional languages, but it's easy to click the Messages button before opening a stack if that's the behavior you want. You can have your cake and eat it too. :)
You mean LiveCode is live code? How was I supposed to know? :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”