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

Closing a TitleWindow component that was opened as a modal window leaks memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: TitleWindow
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Run the attached sample application in the profiler with memory profiling set to true
      2. Click on the Open Window button to open the title window as a modal popup. You will see the SampleComponent come up in the profiler
      3. Now close the popup by clicking the Close Button
      4. run the garbage collector in the profiler.

      Actual Results:
      The SampleComponent continues to exist. Take a memory snapshot, the SampleComponent is still there

      Expected Results:
      SampleComponent should have been garbage collected as there is no other object referencing it

      Workaround (if any):
      The garbage collector is not picking up the fact that we are setting the variable 'win' to null in the main application. If we don't keep an instance of the opened window in the main app and close the window from within the SampleComponent, it seems to work sometimes

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: