Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-20164

Close the child Window, the child window still in the memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.3 (Release)
    • None
    • mx: Window
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Internet Explorer 7.x
      Language Found: Japanese

    Description

      Steps to reproduce:
      1.Start WindowCloseMemory.mxml
      2.Click [Open Window] Button, then ChildWindow is displayed. We found it from the Live Object Browser.(attachment's 4.png)
      3.Click [Close Window]Button, then ChildWindow is closed. We found it was still in the Live Object Browser.(attachment's 6.png)
      (evidence:1.png -> 2.png -> 3.png -> 4.png -> 5.png -> 6.png)

      Actual Results:
      Call the childWindow's close method, and set null into it, but it wasn't removed from the memory.

      Expected Results:
      Call the childWindow's close method, and set null into it, it was removed from the memory.

      Workaround (if any):

      none

      // ^^^^^^^^^^^^^^^^^^^^^^^^
      my mail:li-x@neusoft.com

      I found the solution that clear the window from the memory:
      A,B and C is Window. I open them from the main mxml.
      When you close the a , b or c, you would set the a, b or c null in the main mxml.

      private var a:A = null;
      private var b:B = null;
      private var c:C = null;

      private function showWindow():void {
      a = new A();
      b = new B();
      c = new C();
      a.addEventListener(Event.CLOSE, function(e)

      { a = null; System.gc(); }

      );
      b.addEventListener(Event.CLOSE, function(e)

      { b = null; System.gc(); }

      );
      c.addEventListener(Event.CLOSE, function(e)

      { c = null; System.gc(); }

      );
      a.open();
      b.open();
      c.open(true);

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: