|
|||||||||
|
Submit Links |
Latest Links
| Login
(want to submit links for DLinks? send a mail to krishnas@javabeat.net)
Flex – Event Handlers and Weak Referencessubmited by krishnas on Thu Sep 30th, 2010 Previously, I discussed techniques for freeing up memory on video and images in Flex, but I neglected to include a discussion of event handlers. With the release of ActionScript 3, Adobe added the notion of strong references and weak references. Strong references are those references that, if present, will prevent the object from being garbage collected. The presence of only weak references, on the other hand, will allow an object to be garbage collected. When most developers consider garbage collection, they often consider only strong references, those references they explicitly know about. The age-old wisdom, that if you remove all active (strong) references to an object, it will become eligible for garbage collection, overlooks the fact that the object may have strong references from other objects, created via event handler registration.Topic: java |
|||||||||
|
|||||||||