incubator-flex-dev mailing list archives

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


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:
>             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,
> 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
> If you don't focus into the text input, you don't get the memory leak.
> This was documented before here ( 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:

View raw message