{"id":5977,"date":"2014-04-11T06:57:36","date_gmt":"2014-04-11T06:57:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/11\/can-a-flash-component-check-its-own-use-count-collection-of-common-programming-errors\/"},"modified":"2014-04-11T06:57:36","modified_gmt":"2014-04-11T06:57:36","slug":"can-a-flash-component-check-its-own-use-count-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/11\/can-a-flash-component-check-its-own-use-count-collection-of-common-programming-errors\/","title":{"rendered":"Can a Flash component check its own use count?-Collection of common programming errors"},"content":{"rendered":"<p>(ActionScript 3 only) Another possibility would be, using a Dictionary with weak referenced keys to keep track of the referenced\/retained objects at runtime. By checking which instance is in the dictionary, you get a rough idea, what&#8217;s going. But that is a nondeterministic approach, because you never know, when the the garbage collection is running.<\/p>\n<p>Another idea would be an ObjectPool. This could be implemented rudimentary in a couple of minutes, but needed to be used consequently throughout the whole application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(ActionScript 3 only) Another possibility would be, using a Dictionary with weak referenced keys to keep track of the referenced\/retained objects at runtime. By checking which instance is in the dictionary, you get a rough idea, what&#8217;s going. But that is a nondeterministic approach, because you never know, when the the garbage collection is running. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5977","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5977"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5977\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}