Can't save stack issue

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

CAsba
Posts: 452
Joined: Fri Sep 30, 2022 12:11 pm

Re: Can't save stack issue

Post by CAsba » Wed Dec 13, 2023 3:54 pm

Hi,
WAS functional, no longer working - it appears to save, but on opening the file the unsaved version runs !

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10454
Joined: Wed May 06, 2009 2:28 pm

Re: Can't save stack issue

Post by dunbarx » Wed Dec 13, 2023 4:20 pm

CAsba.

I am confused. Are you saying that a stack is having this problem in the IDE? That if you modify that stack and save, the changes are not saved at all? And that the only way to save those changes is to "Save as" to a new stack file?

Here is something. If you "Save as..." you are creating a new stack file. I assume (hope) you are renaming that stack file. But know that the stack itself will have the same name unless you change that as well. Have you been changing both?

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10454
Joined: Wed May 06, 2009 2:28 pm

Re: Can't save stack issue

Post by dunbarx » Wed Dec 13, 2023 4:44 pm

CAsba.

In other words, there are two separate "things" we must deal with. First is the stack file, which is a file on your computer. The "stack" is the LiveCode object that you actually work on, adding buttons, changing colors and saving now and then.

But if you "Save as..." you are only creating a new stack file with the very same stack as its "child". It will be an exact copy of whatever you had when you did that.

Does this help?

Craig

stan
Posts: 11
Joined: Thu Jul 17, 2008 10:28 am

Re: Can't save stack issue

Post by stan » Sun Feb 01, 2026 6:01 pm

I just encountered the same issue so thought I'd report my findings here.

I had exactly the same errors and issues saving stacks as reported earlier here - and couldn't even use the trick of saving the stack under a different name/location.

The issue? - my own sloppy coding! I had a rogue handler that was opening but not closing database connections to a sqlite db so the open connections were piling up out of control. So, if you do encounter this issue - check it's not something to do with your code causing LC to effectively run out of resources in some way.

Stan

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10454
Joined: Wed May 06, 2009 2:28 pm

Re: Can't save stack issue

Post by dunbarx » Mon Feb 02, 2026 4:21 pm

Stan.

Are you saying that operator malfunction was somehow involved here? :shock:

Craig

Post Reply