Re: [flexcoders] Bitmap width/height 0 when loading image from hard drive

2010-02-23 Thread Aaron Hardy
Thanks Alex for the follow-up. Your questions prompted me to dig into the memory load more and it looks like we had some bad memory issues. Specifically, when the user selects a bunch of photos, we load those images in using file.load() and then generate small thumbnails from the loaded data.

Re: [flexcoders] Bitmap width/height 0 when loading image from hard drive

2010-02-23 Thread Alex Harui
IMHO, the player and the hosting browser get really unpredictable once you get past 500MB or so. Hopefully you’ll be able to stay below that and your app will be stable. On 2/23/10 9:08 AM, Aaron Hardy aaronius...@gmail.com wrote: Thanks Alex for the follow-up. Your questions prompted

[flexcoders] Bitmap width/height 0 when loading image from hard drive

2010-02-22 Thread Aaron Hardy
Flexers, We have an app that allows a user to upload images. When the user selects an image, we load the bitmap from the hard drive and create a thumbnail from it. However, every once in a while the bitmap will return 0 for both width and height which causes issues later on. That vast majority

Re: [flexcoders] Bitmap width/height 0 when loading image from hard drive

2010-02-22 Thread Alex Harui
Is there a particular file that gives you trouble or wil it load successfully at some other point? On 2/22/10 10:06 AM, Aaron Hardy aaronius...@gmail.com wrote: Flexers, We have an app that allows a user to upload images. When the user selects an image, we load the bitmap from the hard

Re: [flexcoders] Bitmap width/height 0 when loading image from hard drive

2010-02-22 Thread Aaron Hardy
It's not any particular photo or set of photos. Sometimes we can run the app and load the photos just fine then the next day we'll attempt to load the same files and the width/height will return 0. It seems that once the issue starts to occur that any time we try to upload any photo within that

Re: [flexcoders] Bitmap width/height 0 when loading image from hard drive

2010-02-22 Thread Aaron Hardy
I've gathered additional information. It appears that it's due to bitmaps that are over the supported size (16,777,215 pixels). While the bitmaps load in fine when the Flash Player isn't under much stress, the width/height choke when there is stress. Again, it isn't consistent, but that seems

Re: [flexcoders] Bitmap width/height 0 when loading image from hard drive

2010-02-22 Thread Aaron Hardy
And yet another update. Sorry for the large number of emails. It looks like the more and more I use the application and add stress to the Flash Player the smaller the image must be in order to avoid the 0 dimensions issue. In other words, if the Flash Player doesn't have much stress I can load

Re: [flexcoders] Bitmap width/height 0 when loading image from hard drive

2010-02-22 Thread Alex Harui
How much process memory is the browser using when you run into trouble? How many images have you loaded? How many of those images are still around? On 2/22/10 4:48 PM, Aaron Hardy aaronius...@gmail.com wrote: And yet another update. Sorry for the large number of emails. It looks like