I'm not clear the player is leaking as much as the profiler is showing references that it shouldn't.
In the profiler, you will see strings with no backreferences. I don't worry about those, and only worry about ones with backreferences. ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shlomic_thailand Sent: Tuesday, May 13, 2008 2:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Memory leak in UIDUtil.createUID() Hi you were right, i've made a test with periodically creating new UID with timer (10000 times each tick) and the was no problem on FF and IE when i installed the release version. BUT - this is shame from adobe to release a player in debug version which has leaks in it, first of all - we spent a week for nothing. second - how can a developer write something and make sure his code is not leaking ? if he needs to install/reinstall a different version every time. but at least we don't have a problem. Shlomi --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > 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: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of Bjorn Schultheiss > Sent: Monday, May 12, 2008 4:03 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Re: Memory leak in UIDUtil.createUID() > > > > I hope not. > > I'm using it everywhere! > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% 40yahoogroups.com> > , "shlomic_thailand" <shlomic@> 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> > <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> > > >