1 Reply Latest reply on Jan 4, 2007 1:27 PM by Jonathan Urban

    Memory leak with mx:ComboBox ???

    Jonathan Urban
      Hi,
      I recently test the flex framework. i created a very simple application. I join my MXML code below:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application
      xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:ArrayCollection id="comboData">
      <mx:Array>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      <mx:Object label="New York" data="NY"/>
      <mx:Object label="Connecticut" data="CT"/>
      <mx:Object label="Illinois" data="IL"/>
      </mx:Array>
      </mx:ArrayCollection>
      <mx:ComboBox dataProvider="{comboData}"/>
      </mx:Application>

      If you run this application, give focus to the combox without make visible the dropDownList (Pressing the key "TAB"),
      and browse items using "UP" and "Down" keys, you will notice that your browser memory is increasing (400 Ko each time your press the key) !!!

      I use WinXP SP2, Mozilla Firefox 1.0.

      It is normal?