Page 1 of 1

Standalone applications

Posted: Mon Sep 10, 2007 6:33 pm
by Nigel
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

Posted: Mon Sep 10, 2007 8:21 pm
by Mark
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

Posted: Tue Sep 11, 2007 10:24 am
by Nigel
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.

Posted: Tue Sep 11, 2007 10:54 am
by Mark
Hi Nigel,

Which version of Revolution are you using?

Mark

Posted: Tue Sep 11, 2007 10:58 am
by Nigel
Revolution Studio 2 Build 472 Version 2.8.1 - it's the evaluation version I just downloaded a few days ago.

Posted: Tue Sep 11, 2007 11:25 am
by Mark
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