Re: [flexcoders] Image-swfLoader-memory

2009-02-17 Thread Alain Thibodeau
Excellent, thanks Alex, great help!


 




From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Monday, February 16, 2009 4:21:14 PM
Subject: RE: [flexcoders] Image-swfLoader-memory


There’s a profiler tutorial on my blog.  However, in general, the number of 
instances of SWFLoader, Bitmap and BitmapData should not keep going up after 
you force garbage collection.
 
Several people say that if it is the browser, especially IE, you can minimize 
and restore IE and the memory will be reclaimed.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Alain Thibodeau
Sent: Monday, February 16, 2009 9:00 AM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Image-swfLoader-memory
 
Thanks Alex,
 
So there shouldn't be any issues with the way I set the swfLoader in Cairngorn 
then? 
 
I did test with the profiler and unless I am blind I don't see it releasing 
memory, however, I am not an expert with it. When I do test with the browser 
(IE), I see the memory go down then back up, in the long run it always goes 
much higher and doubles or triples from original. I am not sure at this point 
if I should worry about it or code it a different way. If it is the brower, 
then I gather there isn't much I can do...
 
Thanks again.
 



From:Alex Harui aha...@adobe. com
To: flexcod...@yahoogro ups.com flexcod...@yahoogro ups.com
Sent: Monday, February 16, 2009 11:43:24 AM
Subject: RE: [flexcoders] Image-swfLoader-memory
Use the Profiler to see if you really have such a problem..  We have seen 
issues with some browsers not releasing memory even though Flex has.
 
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of thibodeau.alain
Sent: Monday, February 16, 2009 6:00 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Image-swfLoader-memory
 
Hi all,
I am building a photo library using tileList and the mx:Image. I do 
notice that the memory does grow the more images I load. The mx:Image 
is bound to my modelLocator, so I am not actually unloading the image 
per say, I am just changing the source with databinding. I did assume 
however that it would unload the image before loading the next...That 
said, I've also tested to unload the image manually. 

I've read various conflicting posts on swfLoader and how it doesn't 
actually unload loaded swf's or images. I've also read that in player 
10+ it actually unloads swf's properly...Can someone please tell me 
what simply is the truth? And if there is an issue with the swfLoader, 
than what would be a good workaround?

Thanks in advance, I appreciate it..
 



  

RE: [flexcoders] Image-swfLoader-memory

2009-02-16 Thread Alex Harui
Use the Profiler to see if you really have such a problem.  We have seen issues 
with some browsers not releasing memory even though Flex has.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of thibodeau.alain
Sent: Monday, February 16, 2009 6:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Image-swfLoader-memory


Hi all,
I am building a photo library using tileList and the mx:Image. I do
notice that the memory does grow the more images I load. The mx:Image
is bound to my modelLocator, so I am not actually unloading the image
per say, I am just changing the source with databinding. I did assume
however that it would unload the image before loading the next...That
said, I've also tested to unload the image manually.

I've read various conflicting posts on swfLoader and how it doesn't
actually unload loaded swf's or images. I've also read that in player
10+ it actually unloads swf's properly...Can someone please tell me
what simply is the truth? And if there is an issue with the swfLoader,
than what would be a good workaround?

Thanks in advance, I appreciate it.



Re: [flexcoders] Image-swfLoader-memory

2009-02-16 Thread Alain Thibodeau
Thanks Alex,

So there shouldn't be any issues with the way I set the swfLoader in Cairngorn 
then? 

I did test with the profiler and unless I am blind I don't see it releasing 
memory, however, I am not an expert with it. When I do test with the browser 
(IE), I see the memory go down then back up, in the long run it always goes 
much higher and doubles or triples from original. I am not sure at this point 
if I should worry about it or code it a different way. If it is the brower, 
then I gather there isn't much I can do...

Thanks again.





From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Monday, February 16, 2009 11:43:24 AM
Subject: RE: [flexcoders] Image-swfLoader-memory


Use the Profiler to see if you really have such a problem.  We have seen issues 
with some browsers not releasing memory even though Flex has.
 
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of thibodeau.alain
Sent: Monday, February 16, 2009 6:00 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Image-swfLoader-memory
 
Hi all,
I am building a photo library using tileList and the mx:Image. I do 
notice that the memory does grow the more images I load. The mx:Image 
is bound to my modelLocator, so I am not actually unloading the image 
per say, I am just changing the source with databinding. I did assume 
however that it would unload the image before loading the next...That 
said, I've also tested to unload the image manually. 

I've read various conflicting posts on swfLoader and how it doesn't 
actually unload loaded swf's or images. I've also read that in player 
10+ it actually unloads swf's properly...Can someone please tell me 
what simply is the truth? And if there is an issue with the swfLoader, 
than what would be a good workaround?

Thanks in advance, I appreciate it.



  

RE: [flexcoders] Image-swfLoader-memory

2009-02-16 Thread Alex Harui
There's a profiler tutorial on my blog.  However, in general, the number of 
instances of SWFLoader, Bitmap and BitmapData should not keep going up after 
you force garbage collection.

Several people say that if it is the browser, especially IE, you can minimize 
and restore IE and the memory will be reclaimed.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alain Thibodeau
Sent: Monday, February 16, 2009 9:00 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Image-swfLoader-memory

Thanks Alex,

So there shouldn't be any issues with the way I set the swfLoader in Cairngorn 
then?

I did test with the profiler and unless I am blind I don't see it releasing 
memory, however, I am not an expert with it. When I do test with the browser 
(IE), I see the memory go down then back up, in the long run it always goes 
much higher and doubles or triples from original. I am not sure at this point 
if I should worry about it or code it a different way. If it is the brower, 
then I gather there isn't much I can do...

Thanks again.


From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Monday, February 16, 2009 11:43:24 AM
Subject: RE: [flexcoders] Image-swfLoader-memory
Use the Profiler to see if you really have such a problem.  We have seen issues 
with some browsers not releasing memory even though Flex has.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs. adobe.com/ aharuihttp://blogs.adobe.com/aharui

From: flexcod...@yahoogro ups.comhttp://ups.com/ [mailto:flexcoders@ 
yahoogroups. com] On Behalf Of thibodeau.alain
Sent: Monday, February 16, 2009 6:00 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Image-swfLoader-memory


Hi all,
I am building a photo library using tileList and the mx:Image. I do
notice that the memory does grow the more images I load. The mx:Image
is bound to my modelLocator, so I am not actually unloading the image
per say, I am just changing the source with databinding. I did assume
however that it would unload the image before loading the next...That
said, I've also tested to unload the image manually.

I've read various conflicting posts on swfLoader and how it doesn't
actually unload loaded swf's or images. I've also read that in player
10+ it actually unloads swf's properly...Can someone please tell me
what simply is the truth? And if there is an issue with the swfLoader,
than what would be a good workaround?

Thanks in advance, I appreciate it..