1 Reply Latest reply on Mar 13, 2017 7:59 PM by cuilichen@gmail.com

    AS3 global functions creating Function objects which do not get GC'd


      Screen Shot 2013-11-25 at 9.52.16 pm.png

      Scout shows the Function objects are created by the AS3 global functions (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/package.html). Why is it so ? I do not see any reason why an XML or String object create a Function object.


      Also, I removed all the typecasts of XML() and instead replaced it with "as XML" to avoid calling the global function, but there is no impact on the Function objects being created by XML.<class initializer>, code in global scope. It still creates 1700-odd Function objects.


      Any idea what might be wrong with my understanding or any way to figure out whats creating these Function objects ?