To be even more memory conscious, don't instantiate "myDataCalendar" until you
have to use it. Your suggestion indicates you're doing it whenever the
object/class instantiates.
function ChangeWeekHandler(Event){
if(!myDataCalendar) myDataCalendar = new ArrayCollection();
.
Combine variable declaration and object creation in single statement. See the
below pseudo code for example:
private var myDataCalendar :ArrayCollection=new ArrayCollection();
function ChangeWeekHandler(Event){
myDataCalendar= HttpServiceToGetNextWeekData();
myDataCalendar.refresh();
}
Looks like I need to focus on those functions. Many thanks!
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:
I don't like anonymous functions, nested functions or whatever you want to
call function instances. Everything on the callstack is referenced by the
Yes. That's precisely what I'm doing. Only, looking at the code now I realize
most of the time I'm using nested functions (with names) rather than anonymous
functions. I'm not sure what the implications are of using one over another
are but, regardless, I gather you're suggesting this is a
I don’t like anonymous functions, nested functions or whatever you want to call
function instances. Everything on the callstack is referenced by the
scope-chain/activation object until the function instance can be GC’d. Once
you call removeEventLIstener, then the scope-chain goes away, but
Thanks Alex. I don't have any simple test case indicating that they leak, I'm
just struggling to understand what is causing certain leaks in a large
application where the profiler points me to activation objects.
So when tracking memory leaks with the FB4 profiler you're saying one
Could you be registering anonymous functions as event listeners and other
callbacks?
On 8/30/10 12:52 PM, lew.miller lew.mil...@gmail.com wrote:
Thanks Alex. I don't have any simple test case indicating that they leak, I'm
just struggling to understand what is causing certain leaks in a
I'm running into a similar problem, but I don't think the issue is the async
jpeg encoding. I think the problem is generally with flash player.
I'm working on a flash application that gets large (~15mb) jpeg images from the
users file system, the resizes them and recompresses them using the
does the module loading itself really effect performance?
] On Behalf
Of tchredeemed
Sent: Friday, January 16, 2009 1:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Memory leaks?
does the module loading itself really effect performance?
I couldn't resolve my problem with the memory leak, but instead I
resolve the problem of encoding to JPEG far much faster than with the
JPGEncoding Class.
Thanks anyway, cheers.
Hello Alex, thanks for your reply, I've been using it, and the only thing that
i found is an
instance of BitString defined in the custom class i'm using to encode , that
is not leave
memory after the method that create it ended. On the other hand, if i use the
native class,
this instance
Hello Alex, thanks for your reply, I've been using it to find the problem and
the only thing
that i find is that an instace of a BitString declare in my custom encode
Class is not
leaving the memory. Once I ended the methot that created and instance keeps in
memory.
Is there a manual of how
, 2008 5:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Memory leaks in a asyncronic operation
Hello Alex, thanks for your reply, I've been using it, and the only
thing that i found is an
instance of BitString defined in the custom class i'm using to encode
, that is not leave
that.
--
*From:* Gordon Smith
*Sent:* Wednesday, August 29, 2007 12:37 PM
*To:* flexcoders@yahoogroups.com
*Cc:* Alex Harui
*Subject:* RE: [flexcoders] Re: Memory leaks
Here are the results I get when I start by doing Force GC and Capture
Memory and then repeatedly do Add
Oh. It's to bad !!!
Does anybody know to solve this problem ??
--- In flexcoders@yahoogroups.com, André Rodrigues Pena
[EMAIL PROTECTED] wrote:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
mx:VBox id=vBoxLeak width=200
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
filipemlopes
Sent: Tuesday, August 28, 2007 6:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Memory leaks
Oh. It's to bad !!!
Does anybody know to solve this problem ??
--- In flexcoders@yahoogroups.com mailto:flexcoders
Smith
Sent: Wednesday, August 29, 2007 12:37 PM
To: flexcoders@yahoogroups.com
Cc: Alex Harui
Subject: RE: [flexcoders] Re: Memory leaks
Here are the results I get when I start by doing Force GC and Capture Memory
and then repeatedly do Add Childs, Rem Childs, Force GC, Capture Memory
18 matches
Mail list logo