[flexcoders] RE: Dictionary memory leak

2009-02-15 Thread Alex Harui
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.ukblocked::http://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




Re: [flexcoders] RE: Dictionary memory leak

2009-02-15 Thread Josh McDonald
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/


RE: [flexcoders] RE: Dictionary memory leak

2009-02-15 Thread Gregor Kiddie
Sweet, and I can't find the reference I'd made to it previously, which
means it was all in my head or a mysterious conspiracy. I'd probably
vote for the former!

 

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
blocked::http://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



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Josh McDonald
Sent: 16 February 2009 06:04
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: Dictionary memory leak

 

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
mailto: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 http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Gregor Kiddie
Sent: Sunday, February 15, 2009 9:54 AM
To: flexcoders@yahoogroups.com mailto: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 mailto: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 mailto:j...@joshmcdonald.info 
  -  http://twitter.com/sophistifunk http://twitter.com/sophistifunk 
  -  http://flex.joshmcdonald.info/ http://flex.joshmcdonald.info/