Page 1 of 1

Open Stack not working in LiveCode 8+

Posted: Fri Aug 12, 2016 9:46 pm
by Stewart Lynch
I am trying to use a launcher stack in LiveCode 8. I have followed the process found in http://lessons.livecode.com/m/4071/l/17 ... pplication and it works fine in LiveCode 7 but when using LiveCode 8, it gives me an error on the open stack line.

Anyone else seeing this?

Re: Open Stack not working in LiveCode 8+

Posted: Mon Aug 15, 2016 12:29 pm
by Klaus
Hi Stewart,

obviously something has changed with "the defaultfolder" in LC8!?

I NEVER EVER rely on the defaultfolder and rather create absolute pathnames if possible
and with LC and its specialfolderpath() function anything is possible. :D

Dou you add your "Main Application.livecode" vias the "Copy files" tab in the standalone builder settings?
If yes, then use:
...
open stack (specialfolderpath("resources") & "/Main Application.livecode")
...

Important hint:
Writing in the application folder is taboo for non-admin users, so saving that stack may fail in your application!
In that case you should copy the separate stack to the users Documents (or preferences) folder on first launch
and work and save in that folder, where we definitively have write permission!


Best

Klaus