[Q] MPEG growing image?

Brian Brown rbb at techgame.net
Sat Feb 14 22:37:18 UTC 2004


Hello all!

I'm building a Morphic app that displays two movies on the screen, allows the
user to pick one of them after viewing and then displays two more... it will
display as many pairs as you want and then exit. 

I noticed that my image went from 25 megs to 57 megs in about an hour of
development time, all of which was just tweaking the Morphic ui.

Being a Apprentice, I went to minnow and applied "Cleaning up Junk"
(http://minnow.cc.gatech.edu/squeak/2176) 
to try to figure out what is going on. I found that every time I close the app,
many Morphs I create never get GC'd. I have a DualMovieMorph that is a subclass
of MorphicModel, and puts togther a couple of MPEGDisplayMorphs, and has a
non-morphic model that is used to interact with the rest of the app. 

So it seems the models are holding on to the morphs and so not being deleted...
however, why would that grow the image? I would think only memory space would be
taken up by the movies being played. MPEGFile is registering ByteArrays with the
system (Smalltalk externalObjects shows them) and I am calling closeFile on them
(which winds up calling MPEGFile>>finalize, unregistering the external objects
and calling a plugin to close the file)

Anyone have any ideas?

thanks! 

Brian

-- 
Brian Brown
TechGame Networks, LLC.
http://www.techgame.net



More information about the Squeak-dev mailing list