Re: Stacks and Standalones
Andrew, As others said, your problem is probably with paths, which IDE handles more automatically for you. Check out the startUp message. It is sent when your standalone application starts and allows you to accommodate the runtime differences between IDE and standalone. Robert ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Stacks and Standalones
I am trying to package up a little preview of my app so far for my boss and am running into a few large snags. Saving as a stand alone (with all the guides I have been following) mangles the program and it crashes. Stack runner 2.0 runs the program mostly fine but it cannot find substacks to my Main.rev. Main.rev has several substacks TopMenu being one of them, but stack runner produces this revError Executing at 10:36:21 AM on Tuesday, March 9, 2010 Type: Chunk: can't find stack Object: card id 1002 of stack TopMenu of stack C:/Rev/FOM2/main.rev Line: put (the height of stack sMainStack + 30) + (the height of stack TopMenu + 30) + (the height of stack Help + 30) into sReportHeight Line Num: 4 Hint: buddy I am a little confused on how to refer to stacks/files/etc within rev. My program works fine within the IDE but is nearly totally broken no matter what stand alone solution I use. The layout of my app is as follows: Main.Rev has substacks -- Calendar, Help, libSQLYoga, Reports, Resources, SideMenu, TopMenu LeaseStack.rev has substacks -- Edit Fields, Edit Lease, Edit Payments Setup.rev has substacks -- People Setup How would I refer to TopMenu? Currently it is 'stack TopMenu'. How would I refer to Edit Fields of LeaseStack.rev from withing main.rev? currently its stack LeaseStack Surely my stand alone problems have to do with my code because they are so universal to all the solutions I have tried. Any help or direction you could provide would be fantastic. If I need to clarify at all, please let me know. Thanks, Andrew -- View this message in context: http://n4.nabble.com/Stacks-and-Standalones-tp1586282p1586282.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Stacks and Standalones
On Mar 9, 2010, at 10:00 AM, Andrew Kluthe wrote: I am trying to package up a little preview of my app so far for my boss and am running into a few large snags. Saving as a stand alone (with all the guides I have been following) mangles the program and it crashes. Stack runner 2.0 runs the program mostly fine but it cannot find substacks to my Main.rev. Are you by chance setting the defaultFolder anywhere in any or your stacks? The default setting of that property that will change depending upon whether you're in the IDE or standalone or launching from a stack runner. Another possibility for the standalone: did you check the Move substacks to individual stackfiles box in the Stacks pane of the standalone builder? These are off the top of my head, and maybe grasping at straws, but I'm trying to think of things that might be different depending on the environment you're running in. Normally a standalone runs flawlessly if the stack in the IDE is working in the IDE. Devin Main.rev has several substacks TopMenu being one of them, but stack runner produces this revError Executing at 10:36:21 AM on Tuesday, March 9, 2010 Type: Chunk: can't find stack Object: card id 1002 of stack TopMenu of stack C:/Rev/FOM2/ main.rev Line: put (the height of stack sMainStack + 30) + (the height of stack TopMenu + 30) + (the height of stack Help + 30) into sReportHeight Line Num: 4 Hint: buddy I am a little confused on how to refer to stacks/files/etc within rev. My program works fine within the IDE but is nearly totally broken no matter what stand alone solution I use. The layout of my app is as follows: Main.Rev has substacks -- Calendar, Help, libSQLYoga, Reports, Resources, SideMenu, TopMenu LeaseStack.rev has substacks -- Edit Fields, Edit Lease, Edit Payments Setup.rev has substacks -- People Setup How would I refer to TopMenu? Currently it is 'stack TopMenu'. How would I refer to Edit Fields of LeaseStack.rev from withing main.rev? currently its stack LeaseStack Surely my stand alone problems have to do with my code because they are so universal to all the solutions I have tried. Any help or direction you could provide would be fantastic. If I need to clarify at all, please let me know. Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Stacks and Standalones
I did not set the default folder. I will look this up in the dictionary right away. I tried the builder with both settings: individual and as they were. Neither had any effect on how it performed. -- View this message in context: http://n4.nabble.com/Stacks-and-Standalones-tp1586282p1586349.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Stacks and Standalones
No change from the stand alone builder. I do get warnings telling me that libsql yoga couldn't be searched because it was password protected. stack runner 2.0 runs a little bit better (still having a hard time finding handlers in TopMenu) with adding that. Here is a new error I am getting though. Executing at 11:49:36 AM on Tuesday, March 9, 2010 Type: value: can't find object Object: stack libSQLYoga of stack C:/Rev/FOM2/main.rev Line Num: 0 Hint: database key default was not found Comments: -- View this message in context: http://n4.nabble.com/Stacks-and-Standalones-tp1586282p1586364.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Stacks and Standalones
On Mar 9, 2010, at 12:52 PM, Andrew Kluthe wrote: No change from the stand alone builder. I do get warnings telling me that libsql yoga couldn't be searched because it was password protected. stack runner 2.0 runs a little bit better (still having a hard time finding handlers in TopMenu) with adding that. Here is a new error I am getting though. Executing at 11:49:36 AM on Tuesday, March 9, 2010 Type: value: can't find object Object: stack libSQLYoga of stack C:/Rev/FOM2/main.rev Line Num: 0 Hint: database key default was not found This error would be thrown if you didn't load your SQL Yoga Database object for whatever reason. Can you verify that the code that loads the Database object is getting called in the standalone? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Stacks and Standalones
Andrew Kluthe wrote: I am trying to package up a little preview of my app so far for my boss and am running into a few large snags. Saving as a stand alone (with all the guides I have been following) mangles the program and it crashes. Stack runner 2.0 runs the program mostly fine but it cannot find substacks to my Main.rev. Main.rev has several substacks TopMenu being one of them, but stack runner produces this revError Executing at 10:36:21 AM on Tuesday, March 9, 2010 Type: Chunk: can't find stack Object: card id 1002 of stack TopMenu of stack C:/Rev/FOM2/main.rev Line: put (the height of stack sMainStack + 30) + (the height of stack TopMenu + 30) + (the height of stack Help + 30) into sReportHeight Line Num: 4 Hint: buddy I am a little confused on how to refer to stacks/files/etc within rev. My program works fine within the IDE but is nearly totally broken no matter what stand alone solution I use. The layout of my app is as follows: Main.Rev has substacks -- Calendar, Help, libSQLYoga, Reports, Resources, SideMenu, TopMenu LeaseStack.rev has substacks -- Edit Fields, Edit Lease, Edit Payments Setup.rev has substacks -- People Setup How would I refer to TopMenu? Currently it is 'stack TopMenu'. How would I refer to Edit Fields of LeaseStack.rev from withing main.rev? currently its stack LeaseStack Surely my stand alone problems have to do with my code because they are so universal to all the solutions I have tried. Any help or direction you could provide would be fantastic. If I need to clarify at all, please let me know. In the IDE, you have probably been manually opening Main.rev and then LeaseStack.rev and then Setup.rev and everything works. Understand that a standalone is essentially one stack (and its substacks). That one stack that you build into a standalone then has to do what you have been doing manually, which is open the other stacks. So assuming main.rev is your main stack that you are making into a standalone, in the preOpenStack handler of main.rev, you need to *go invisible stack LeaseStack* and *go invisible stack Setup* This will open the other two stacks without displaying them on the screen. For this to work, the two stacks (LeaseStack and Setup) need to be in the same folder as your standalone. When you launch your standalone, the defaultFolder is set to the folder that contains the standalone and this is where rev will, by default, look for the other main stacks to open. When you open a stack like LeaseStack, its substacks are automatically opened. So once you open the other two main stacks, then everything will work like it does now in the IDE. There are many variations on what I've said above, but essentially you need to make sure all of your stacks are open before you can address them. Aloha from Hawaii, Jim Bufalini ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re-2: persistent objects in runrev (howto) + Q: unprotected stacks in standalones
Hello Chipp, The experienced users seem to have had this solution (the old suckUp spitOut trick) since years I am so proud of since the weekend. Exactly thats it. Because I even could embed some unprotected stacks I would use in this way in standalones instead of putting it in a separated .rev file: A question to the experienced: The old 2.2.1 standalones have been #!/bin/sh encapsulated stack files and the old decompile script from the list could decompile the stacks from the standalones (the stacks stay password protected to be shure). The standalones now seem to be changed in format and technique (I checked this on 2.7 a year ago on linux and win) and the decompile script from the eldest does not work anymore. Q: Is it possible to decompile current standalones with such a short script? (Please not the answer: you can decompile any program ... ;-) I am no assembler. Regards, Franz Mit freundlichen Grüßen Franz Böhmisch [EMAIL PROTECTED] http://www.animabit.de GF Animabit Multimedia Software GmbH Am Sonnenhang 22 D-94136 Thyrnau Tel +49 (0)8501-8538 Fax +49 (0)8501-8537 on mouseUp answer file Standalone if it is cancel then exit to top put url (binfile:it) into tStack repeat forever -- there's more than one stackfile in there which isinteresting ;-) put offset(#!/bin/sh,char 10 to -1 of tStack) into tOff if tOff = 0 then exit repeat put char tOff+9 to -1 of tStack into tStack end repeat ask file Stack if it is cancel then exit to top set the fileType to RevoRSTK put tStack into url (binfile:it) answer conversion finished with OK end mouseUp Regards, Franz Original Messageprocessed by David InfoCenter Subject: Re: persistent objects in runrev (howto) (13-Okt-2008 19:48) From:Chipp Walters [EMAIL PROTECTED] To: [EMAIL PROTECTED] Ken, The way I read it-- it's the old suckUp spitOut trick but encrypting the stack beforehand. The idea being it's not necessary to password protect the stack as anyone trying to read the file format won't be able to make sense of it. Therefore, after 'spitting out' you can use it just like any non-password protected stack. Perhaps I'm wrong, but that's what I get from the rather vague post. -Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution To: use-revolution@lists.runrev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Re-2: persistent objects in runrev (howto) + Q: unprotected stacks in standalones
Hi Franz, The format has changed, and to my knowlege there is not decompile stack or script available for it. Sorry. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
memory dimensions in stacks and standalones
Hi, all. 1. I'm working on a set of stacks which will provide quite a bit of information, representing a kind of encyclopedic dictionary of an American Indian language. I'm manipulating a lot of this info with various global arrays, and I'm wondering what sorts of limits on memory I need to think about. For example, I want to include a citation database -- that is, a collection of texts which can be used to provide examples to users of the dictionary -- this database could easily grow to 5 megabytes in size. If I have say, five other array files open that together take up 10-15 megabytes, will this be a problem? I just have no idea of how memory management works with runrev stacks (or any application!). And of course, I want my final dictionary to be a standalone. What do I need to worry about? 2. If I were to put my citation database in a text file, in order to look something up in that file, does the whole file have to be in memory? Thanks. rand ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution