0 Replies Latest reply on Dec 18, 2008 6:49 PM by Hamarict

    Flex Module memory leak ?

    Hamarict
      well im not sure if this is a bug but.. suppose i have this app:

      main.mxml
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Script>
      <![CDATA[
      public function test():void
      {
      ml.unloadModule();
      }
      ]]>
      </mx:Script>

      <mx:ModuleLoader id="ml" url="a.swf">
      </mx:ModuleLoader>
      </mxApplication>

      and the a.mxml
      <mx:Module xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300" backgroundColor="#751A1A">
      <mx:Script>
      <![CDATA[
      private function click():void
      {
      parentApplication.test();
      }
      ]]>
      </mx:Script>
      <mx:Button x="75" y="114" label="Button" click="click()"/>
      </mx:Module>


      so when i click the button in the module.. its supposed to remove the instance of "a" right ?

      well with the code above when checking in the flex profiler.. it doesnt remove the instance of "a".. why ?

      using flex sdk 3.2