Page 2 of 2
Re: "Save" in a standalone application
Posted: Thu Feb 07, 2019 9:17 pm
by Klaus
Hi Larry,
hm, too funky, running out of ideas...
Please check if the sourcestack is really available where we think it is:
Code: Select all
...
## Stack to copy:
put specialfolderpath("resources") & "/Giving_Main.livecode" into tSourceStack
answer (there is a file tSourceStack)
## Should read -> TRUE
...
Re: "Save" in a standalone application
Posted: Fri Feb 08, 2019 6:23 pm
by jacque
The error "file is not a stack" usually means it was saved in a format that LC can't read. This can happen if the stack was saved in a version of LC that is newer than the LC version trying to open it.
Did you save the source stack using the same version you used to build the standalone?
Re: "Save" in a standalone application
Posted: Fri Feb 08, 2019 6:37 pm
by lohill
Many thanks Klaus,
That revealed the culprit. My source stack file was named "Giving Main.livecode" and not "Giving_Main.livecode". I hate it when I do that to myself and I am glad you did not run out of ideas.
Larry
Re: "Save" in a standalone application
Posted: Fri Feb 08, 2019 7:44 pm
by Klaus
Great you found it!
Well, that was in fact my last idea on this issue.

Re: "Save" in a standalone application
Posted: Fri Feb 08, 2019 8:01 pm
by bogs
jacque wrote: Fri Feb 08, 2019 6:23 pm
The error "file is not a stack" usually means it was saved in a format that LC can't read. This can happen if the stack was saved in a version of LC that is newer than the LC version trying to open it.
Just to clarify that, in the 6.x series and previous, if you try to open a stack that was saved in a newer format, you will see the message "file is not a stack".
In 7.x and later, the message will read "There was a problem opening that stack: stack was produced by a newer version"