I use Dictionary as a non-leaking "map" all over the place and I definitely
don't have any problems with it (Player 10, Mac).

-Josh

On Mon, Feb 16, 2009 at 4:00 PM, Alex Harui <aha...@adobe.com> wrote:

>    I don't know of any leaks.  Got a bug report?  Test case?
>
>
>
> Most common problem is not understanding that only the keys are weak
> referenced.  The values are strong references.
>
>
>
> Var obj:Object
>
> Var dict:Dictionary
>
>
>
> dict[obj] = 1; // weak reference
>
> dict[1] = obj; // strong reference and memory leak
>
> dict[obj] = obj; // strong reference on value side and also a memory leak.
>
>
>
>
>
> 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 *Gregor Kiddie
> *Sent:* Sunday, February 15, 2009 9:54 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Dictionary memory leak
>
>
>
> Anyone know if this has been fixed?
>
>
>
> There was a reported memory leak a while back (at least in my memory ;) )
> and I'm trying to work out if it's safe to use Dictionarys again…
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:       01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> is.helpd...@inps.co.uk
>
>
>
>   
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/

Reply via email to