On Wednesday, Sep 11, 2002, at 07:27 US/Central, Michael von Aichberger 
wrote:

> Is that one image filling more memory now or is it only passed to the 
> many
> other objects by reference?

It's passed by reference unless you use the duplicate() call:

   imageB = imageA.duplicate() -- explicit copy made; mem usage doubled
   imaceC = imageA -- imageA is passed by reference; mem usage unaffected

This is a sure way to get nailed -- I mean not using duplicate -- 
because if (for instance) you set up some code that gets MIAW images in 
series to send to a printer, and you do *not* use the duplicate call 
for each MIAW, Director will not release those MIAWs no matter how many 
times you send close and forget calls until the object doing the 
calling is itself discarded.

That is the voice of painful experience. Try doing that with 80+ MIAWs, 
all at 800 by 600, on a system with a mere 256 Mb RAM.


              Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
        Author | Director 8.5 Shockwave Studio: A Beginner's Guide
                    Published by Osborne/McGraw-Hill
        http://shop.osborne.com/cgi-bin/osborne/0072195622.html

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to