Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Developer
zezke
Posts: 820
Registered: ‎12-12-2010
My Carrier: Mobile Vikings

Re: Monitor memory usage

Well basically what I am doing is reading a bunch of images from an archive.

 

 

var data:ByteArray = zipFile.getInput(entry);
previewLoader.loadBytes(data);
...
bitmap = Bitmap(imageLoader.content);

 

 

-------------------------------------------
Your like is much appreciated!
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Please use plain text.
Developer
peter9477
Posts: 5,630
Registered: ‎12-08-2010
My Carrier: none

Re: Monitor memory usage

Sure, but how much memory are you actually allocating with that? And are you keeping references to all of them, or might the earlier ones be getting garbage collected as you load new ones, such that overall memory usage doesn't really change?

Peter Hansen -- (PlayBook and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
zezke
Posts: 820
Registered: ‎12-12-2010
My Carrier: Mobile Vikings

Re: Monitor memory usage

Currently the archive is 9MB and I am loading a bitmap of every picture to display thumbnails (I do realise I should create actual thumbnails instead, I just didn't figure out how to do this yet).

-------------------------------------------
Your like is much appreciated!
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Please use plain text.