Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-02-12 Thread iiley
I finally did some test again, it works as same as you said in last post, if i keep adding data into the Dictionary, for the test3 case, it will be garbage collected, if not keep adding data, it will not. Thanks, i hope player team will find time to address this issue in a future release of the pl

Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-02-08 Thread iiley
I see, thank you for the details Alex, seems it's a weak of Dictionary, hope in future it'll be strong, i'll do more test to ensure the conclusion. Thanks very much, i know the Dictionary more deeper now. :) -- iiley AsWing http://www.aswing.org Personal http://www.iiley.com

RE: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-31 Thread Alex Harui
s@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iiley Sent: Wednesday, January 30, 2008 2:16 AM To: flexcoders@yahoogroups.com Cc: [EMAIL PROTECTED] Subject: Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug I'v posted a bug report at http://www.adobe.com/cfusion/mmform

Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-30 Thread iiley
I'v posted a bug report at http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=17 Thanks -- iiley AsWing http://www.aswing.org Personal http://www.iiley.com

Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-30 Thread iiley
OK, thank you Alex. -- iiley AsWing http://www.aswing.org Personal http://www.iiley.com

RE: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-30 Thread Alex Harui
t: Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug NO, the code does not generat new TestDic, but it keep DicCase instances in an array, but did you see dic = new Dictionary(true);? it is the ComplexObj instances container. Yes, i use FB3 profiler, do you see this pic

Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-29 Thread iiley
NO, the code does not generat new *TestDic*, but it keep *DicCase* instances in an array, but did you see *dic = new Dictionary(true);? *it is the ComplexObj instances container. Yes, i use FB3 profiler, do you see this picture: http://demo.aswing.org/dictionary.gif Thank you for keeping help me,

RE: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-29 Thread Alex Harui
] On Behalf Of iiley Sent: Tuesday, January 29, 2008 6:29 PM To: flexcoders@yahoogroups.com Cc: [EMAIL PROTECTED] Subject: Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug Hi Alex, Thanks very much for your deep analyse. >Also, I haven't seen your test code I

Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-29 Thread iiley
Hi Alex, Thanks very much for your deep analyse. >Also, I haven't seen your test code I'v posted the test code in first post, well, maybe it's long so you don't see it, i attached it here again. In your analyse, there's misunderstood, i mean test2 and test3 methods in the code: public function

RE: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-29 Thread Alex Harui
roups.com Cc: [EMAIL PROTECTED] Subject: Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug I ran TestDic again for test3 method, it eat all my 2G ram after a while. The key has no more referrence, so the value should be GCed, well, however the GC is opportunistic, but why he did not f

Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-29 Thread iiley
I ran TestDic again for test3 method, it eat all my 2G ram after a while. The key has no more referrence, so the value should be GCed, well, however the GC is opportunistic, but why he did not find a chance to free some memory till all 2G are eaten? Such a GC, i'm afraid to trust it. Or, there's so

Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-28 Thread iiley
Hi Alex, Thanks for discuss, but i don't agree with you. I know GC is opportunistic, but it should be serviceable. How do you think of the difference between test2 and test3? -- iiley AsWing http://www.aswing.org Personal http://www.iiley.com

RE: [flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-28 Thread Alex Harui
references. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iiley Sent: Monday, January 28, 2008 11:01 PM To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] Subject: [flexcoders] Dictionary weakKeys feature or it's a GC bug Hi list, I'v done some tests man

[flexcoders] Dictionary weakKeys feature or it's a GC bug

2008-01-28 Thread iiley
Hi list, I'v done some tests many days to understand how will Dictionary with weakKeys works, but i can't understand some situations. Here's my tested conclusion: (for below, *weakObj* is a object that are not referrenced by any where) *A*.These cases the weakObj will be garbage collected, memory