Note that there are some explanatory texts on larger screens.

plurals
  1. POAdobe Air AS3, disposing a window, profiler suggests library code
    primarykey
    data
    text
    <p>My application creates a window with a few Groups. When the window is closed, the window and it's descendents are not collected by the GC.</p> <p>The Flash Builder Profiler helped me find and remove event listeners to the point where i am unable to spot the problem, since it points to event listeners added from the library code of <code>Window.as</code>.</p> <p>Specifically, comparing the Loitering Objects from before window open and after window close, and choosing the <code>MyWin</code> class (1 instance):</p> <p>MyPackageName.MyWin (10 Paths)</p> <p>10x the following line:</p> <blockquote> <p>Function [savedThis] 569222 GCRoot:Yes bytes:308</p> </blockquote> <p>Clicking each "Function" in the Method panel i see the following 10 at the top of each "Function":</p> <pre><code>spark.components:Window:creationCompleteHandler() Window.as line 2610 spark.components:Window:creationCompleteHandler() Window.as line 2613 spark.components:Window:creationCompleteHandler() Window.as line 2616 spark.components:Window:creationCompleteHandler() Window.as line 2619 spark.components:Window:creationCompleteHandler() Window.as line 2625 spark.components:Window:creationCompleteHandler() Window.as line 2639 spark.components:Window:creationCompleteHandler() Window.as line 2636 Spark.components.supportClasses:SkinnableComponent:attachSkin() SkinnableComponent.as line 694 Spark.components:SkinnableContainer:partAdded() SkinnableContainter.as line 959 Spark.components:SkinnableContainer:partAdded() SkinnableContainter.as line 957 </code></pre> <p>All these are invoked from a MyWin.initialize() in some manner.</p> <p>I have removed every event listener created by my code, and removed all transitions. but still unable to figure the meaning of this and how can i dispose of the window. Any help, would be greatly appreciated since I've been struggling for a few days now.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload