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.

inside custom component

Adobe AIR Development

Reply
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
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);

 

 

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
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 -- (BB10 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!
Highlighted
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
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).

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!