osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory Leak


In general, child UI widgets don't cause leaks unless they attach something to the stage.  So ComboBox is always suspect because it has a dropDown that is attached to the SystemManager/Stage.  A few other components listen for events from the stage.

Also, I want to remind you that foo.addEventListener("someEvent", this.someHandler) creates a reference from foo to the 'this' object.  What you are tracking in your addEventListener override appears to be who is attaching listeners to objects you control the code for, but the leak often stems from module code attaching listeners to objects outside of the module, like the stage, the main app, data objects coming from a server.

Hopefully one of the techniques I suggested earlier will help you figure it out.

HTH,
-Alex

On 5/23/18, 7:25 PM, "aceinc" <pauls@xxxxxxxxxxxx> wrote:

    This is a traditional business application. There are no videos or other
    gimcracks. 
    
    However some of the modules have multiple tabs with close to 200 (maybe
    more) data entry objects, including enhanced versions of the combo box, text
    input, text area, etc.
    
    
    
    --
    Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C52a3974da3d141c52fce08d5c11d9450%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636627255140560646&sdata=kNoHoiaHksF41QSqzuux943JuO8xoEoKlJabzUmP%2BYE%3D&reserved=0