incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Hughes (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-33329) Popup with TextInput never garbage collected
Date Fri, 21 Dec 2012 19:45:12 GMT

     [ https://issues.apache.org/jira/browse/FLEX-33329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Hughes updated FLEX-33329:
-------------------------------

    Attachment: remove_focus_manager.png

I can break the one link to the focusManager by setting the focusManager.form = null, but
there are still other references.

In the popup, I added this code to get this revised memory snapshot:

private function okButton_clickHandler(event:MouseEvent):void
            {
                dispatchEvent(new CloseEvent(CloseEvent.CLOSE));
                focusManager.mx_internal::form = null;
            }
                
> Popup with TextInput never garbage collected
> --------------------------------------------
>
>                 Key: FLEX-33329
>                 URL: https://issues.apache.org/jira/browse/FLEX-33329
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Focus Manager, PopUp Manager, Spark: TextInput
>    Affects Versions: Apache Flex 4.8 (parity release)
>            Reporter: Matt Hughes
>         Attachments: memory_snapshot.png, ProfilingTest.mxml, remove_focus_manager.png,
TitleWindowWithText.mxml
>
>
> In the attached sample application, we use a button to create a popup.  That popup has
a TextInput and a Button.  If you enter text in the text input and click the button, we close
the popup.
> If you take a memory snapshot after the popup has been closed, it still remains in memory.
 If you go through this cycle again and create another popup and close it, it keeps acrueing
instances.
> If you don't focus into the text input, you don't get the memory leak.
> This was documented before here (https://issues.apache.org/jira/browse/FLEX-20312) but
the issue is still reproducible in 4.8 and I don't know of any workarounds.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message