The profiler does not always account for strings correctly.  You may be
seeing the results of that.  The true test is to run the test in the
release player and automatically generate UIDs and see if memory usage
grows over time.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Monday, May 12, 2008 4:03 PM
To: [email protected]
Subject: [flexcoders] Re: Memory leak in UIDUtil.createUID()



I hope not.

I'm using it everywhere!

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "shlomic_thailand" <[EMAIL PROTECTED]> wrote:
>
> Hi
> 
> i ran the following simple application in flex builder 3 profiler
> and found that this method (createUID) is leaking memory.
> looking at its content seems its ok - any ideas
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " 
> layout="absolute">
> 
> <mx:Script>
> <![CDATA[
> import mx.utils.UIDUtil;
> import mx.collections.ArrayCollection;
> 
> private function onCC():void{
> var s:String = UIDUtil.createUID();
> 
> 
> 
> }
> 
> 
> 
> ]]>
> </mx:Script>
> 
> <mx:Button click="onCC()" label="clickme">
> 
> </mx:Button>
> 
> </mx:Application>
>



 

Reply via email to