Open Stack not working in LiveCode 8+

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Stewart Lynch
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 23
Joined: Sun Jul 13, 2008 7:39 pm

Open Stack not working in LiveCode 8+

Post by Stewart Lynch » Fri Aug 12, 2016 9:46 pm

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?

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Open Stack not working in LiveCode 8+

Post by Klaus » Mon Aug 15, 2016 12:29 pm

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

Post Reply