[flexcoders] Re: Memory leaks

2015-09-25 Thread sherwoodspo...@gmail.com [flexcoders]
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(); .

[flexcoders] Re: Memory leaks

2015-09-24 Thread shravanso...@yahoo.com [flexcoders]
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(); }

[flexcoders] Re: memory leaks and activation-objects

2010-09-01 Thread lew.miller
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

[flexcoders] Re: memory leaks and activation-objects

2010-08-31 Thread lew.miller
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

Re: [flexcoders] Re: memory leaks and activation-objects

2010-08-31 Thread Alex Harui
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

[flexcoders] Re: memory leaks and activation-objects

2010-08-30 Thread lew.miller
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

Re: [flexcoders] Re: memory leaks and activation-objects

2010-08-30 Thread Alex Harui
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

[flexcoders] Re: Memory leaks in a asyncronic operation

2009-05-08 Thread Rob Kunkle
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

[flexcoders] Re: Memory leaks?

2009-01-16 Thread tchredeemed
does the module loading itself really effect performance?

RE: [flexcoders] Re: Memory leaks?

2009-01-16 Thread Alex Harui
] 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?

[flexcoders] Re: Memory leaks in a asyncronic operation

2008-06-04 Thread cavi21
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.

[flexcoders] Re: Memory leaks in a asyncronic operation

2008-06-03 Thread cavi21
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

[flexcoders] Re: Memory leaks in a asyncronic operation

2008-06-03 Thread cavi21
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

RE: [flexcoders] Re: Memory leaks in a asyncronic operation

2008-06-03 Thread Alex Harui
, 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

Re: [flexcoders] Re: Memory leaks

2007-08-30 Thread Xavi Beumala
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

[flexcoders] Re: Memory leaks

2007-08-29 Thread filipemlopes
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

RE: [flexcoders] Re: Memory leaks

2007-08-29 Thread Gordon Smith
@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

RE: [flexcoders] Re: Memory leaks

2007-08-29 Thread Alex Harui
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