Stack structure, media and memory?

Ken Apthorpe ken.apthorpe at optusnet.com.au
Fri Feb 17 01:02:39 EST 2006


Hi all

I'm seeking advice on stack structure, for a template for a
presentation-type standalone. I'm using R2.7 trial. 

The (proposed) app will have a main menu, but I'd like a separate navigation
menu, maybe a stack menu with a series of pulldown menu buttons for
navigation (Section 1, page x... etc). 

Content will be contained in other stacks (or substacks?).  Each stack card
will need to load a large image or a movie (from external directory), and
there would be lots of cards.  The cards will also contain text, buttons,
drawn objects, animations etc. Text and vector graphics would be done in
Rev.

However, I can't find info on what exactly happens to loaded media when a
card (or substack) is closed, in terms of memory purging.  I've had other
stand alone media-heavy apps hang because of memory overload so it's an
issue for me.

The Rev pdf manual says <If one stack in a stack file is loaded into memory,
so are any other stacks in the same stack file. You cannot load one stack in
a stack file without loading all the rest at the same time even if you open
only one of the stacks.>

Questions  (these refer to the behaviour of a standalone app): 

1. Am I right to interpret the above quote to mean a stack file includes any
substacks, and these are all are loaded when the main stack is ?

2.  It isn't possible to purge a substack from memory using destroyStack,
even if the substack is closed and another opened ?

3.  So, to purge a stack from memory when it's closed, I would need to use
separate main stacks for each section ?

4.  So, if it is necessary to use a series of separate stacks, these will
not be bundled together into a single file when the standalone is built? 

Ken
--
View this message in context: http://www.nabble.com/Stack-structure%2C-media-and-memory--t1138900.html#a2984088
Sent from the Revolution - User forum at Nabble.com.




More information about the use-livecode mailing list