Standalone applications

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
Nigel
Posts: 5
Joined: Fri Sep 07, 2007 2:45 pm

Standalone applications

Post by Nigel » Mon Sep 10, 2007 6:33 pm

All,

I'm looking for some pointers to known bugs with standalone applications creating using Studio.

I have written a small test stack that simulates a simple web user interface. When I save it as a standalone application the resulting application fails to run on either windows or the mac. On windows it exits immediatly with an "error code 9" and on the mac is just bounces in the dock briefly and then silently exits.

To debug the problem I tried deleting all the cards from the stack except the first one (3 text labels, two text entry fields and two buttons). Still no joy so I deleted the buttons as well and - success ! So I tried the entire stack but without those buttons - no joy :( The fact that I can build and run other standalone applications (I have created a couple of other simple test cases) suggests that the set up is correct but I'm at a loss as to why adding or removing two buttons could make any difference. I can't see anythingstrange in the stack - no included video or functions or anything.

I guess at this point what I'm looking for is some hints from people who have had similar experiences when generating stand alone applications.

Best regards,

Nigel.

P.S. Studio is being used on a Mac running OSX 10.4

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Sep 10, 2007 8:21 pm

Hi Nigel,

Do you have any of the following handlers in your stack: preOpenStack, openStack, startUp, openCard, preOpenCard, openBackground? Does any of these handlers contain a send command? Does the startUp handler have any parameters? Do you have a close (card, stack) or a quit command anywhere? If so, please post the relevant script. Also, can you post the scripts of the two buttons?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Nigel
Posts: 5
Joined: Fri Sep 07, 2007 2:45 pm

Post by Nigel » Tue Sep 11, 2007 10:24 am

Dear Mark,

Many thanks for your interest. The simplest case is as follows:

I have deleted everything from the stack except for one card, no scripts for the stack or the card and just one button - the standalone application doesn't work. The script for the button is shown below:

on mouseUp
go to card "e-campus tasks"
end mouseUp

If I delete this script (i.e. an application with a button with no script) the standalone application works. If I replace the script above with

on mouseUp
beep
end mouseUp

once again it fails to work. So, it appears that as soon as I add a script to a button on this simple one card stack it stops working.

There's obviously something strange because if I create a brand new stack and put in the same code it all works. So there is something I've done to the original stack (I tried copying the file to a new file- no joy) or the settings associated with it.

Any thoughts ?

Nigel.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Sep 11, 2007 10:54 am

Hi Nigel,

Which version of Revolution are you using?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Nigel
Posts: 5
Joined: Fri Sep 07, 2007 2:45 pm

Post by Nigel » Tue Sep 11, 2007 10:58 am

Revolution Studio 2 Build 472 Version 2.8.1 - it's the evaluation version I just downloaded a few days ago.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Sep 11, 2007 11:25 am

Hi Nigel,

The only way to find out what is wrong probably is to recreate your entire stack and to build a standalone after each change to see if it still works. Sorry, I know this is a cumbersome process.

If you like, you can send me your stack (see my profile for an e-mail address). Make sure to send me the version of your stack that consistenyly refuses to run as a standalone. Maybe i can save you some time.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply