custom properties in stacks that aren't open

Chris Sheffield revlist at cableone.net
Fri Jun 11 18:03:45 EDT 2004


Thanks, Richard.

So if I have a stack that's 50 MB containing binary data in custom
properties, will the whole stack get loaded into memory if I want read the
data from just one of those properties?  If that's the case, how do I close
the stack to release that memory if it's not really "open"?  Would I just
issue a normal close stack command?

Chris Sheffield
Software Developer
Read Naturally


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Richard Gaskin
Sent: Friday, June 11, 2004 3:57 PM
To: How to use Revolution
Subject: Re: custom properties in stacks that aren't open

Chris Sheffield wrote:

> What happens if I refer to a custom property that is in a stack that is
not
> open?  Does the stack open invisible and load into memory, or can you
> actually read a custom property from a stack without opening it?
> 
> I've been playing with this a little, but I can't really tell what's
> happening.  I tried getting data from a custom property in a stack file,
> which worked just fine.  But then when I tried to open that stack file in
> the Rev IDE, I got the message saying a stack with the same name was
already
> open and did I want to Save, Purge, or Cancel.  But the stack did not
appear
> in the openStacks.
> 
> Can someone help?

You can read any property of any object in any stack file at any time. 
If the stack is not open, it will be loaded into memory in order to 
access the property, but will not be "opened" per se (will not receive 
"openstack", opencard", etc.)

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________
  Rev tools and more:  http://www.fourthworld.com/rev
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.703 / Virus Database: 459 - Release Date: 6/10/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.703 / Virus Database: 459 - Release Date: 6/10/2004
 



More information about the use-livecode mailing list