You can submit a bug to the bug base http://bugs.adobe.com/flex/
DK On Tue, Mar 25, 2008 at 9:15 AM, David Henry < [EMAIL PROTECTED]> wrote: > Hello again Flex list, > > My team at work has a problem with a memory leak in our application > which we have narrowed down to the clock. We have made a standalone > version of our clock to illustrate the problem (flex3 bug maybe?). Can > anyone explain why this AIR app leaks memory and how to fix it? > > Clock.mxml : > > <?xml version="1.0" encoding="utf-8"?> > <mx:WindowedApplication > xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" > creationComplete="init();" > > > <mx:Script> > <![CDATA[ > > import flash.utils.Timer; > import flash.events.TimerEvent; > > [Bindable] > private var dateAndTime:String; > private var theDate:Date; > private var theTimer:Timer; > > private function createTimer():void > { > theTimer = new Timer(1000, 0); > var theEvent:String = TimerEvent.TIMER; > var useCapture:Boolean = false; > var eventPriority:uint = 0; > var useWeakReference:Boolean = true; > theTimer.addEventListener(theEvent, timerListener, > useCapture, eventPriority, useWeakReference); > theTimer.start(); > } > > private function init():void > { > createTimer(); > } > > private function timerListener(event:TimerEvent):void > { > theDate = new Date(); > dateAndTime = theDate.toLocaleString(); //leak seems > to happen here. > } > ]]> > </mx:Script> > <mx:Label id="dateAndTimeLBL" > text="{dateAndTime}" > right="10" > top="122" > color="#000000" > fontSize="28" > textAlign="center" > width="501" > /> > > </mx:WindowedApplication> > > Thanks for your input! > David > -- > [Image:Our Hero] David Henry > http://ColdFusionPowered.com/ > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5140 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
