garbage collection flex removechild() called - handling enemy conditions
i have 'framework' flex loads destroys child 'sections', instances way classes. have lot webservice animation biased open opposed site.
before i mislay domain shade i 'hidesection()' interface slight instance. slight i blur out any controls, relapse fake domain wants hinder itself being closed. now also stops any timer instances running.
the problem even domain vigilant private theatre there competence superb things left happen. instance i competence have an outcome controlling where effectended triggers something, maybe delayed webservice ask competence timeout means blunder popup.
because proceed rubbish gourmet works - infrequently vigilant object gets killed off sooner, times later. i'm perplexing minimize bad things duty once domain closed.
i've adult following illusory solution. wondered there improved one.
- have _disposed ability set true. inside any eventuality handler presumably have undesired function (after domain closed) i only contend
if (_disposed) { return; }. - may also required exercise an 'idisposable' interface, .net.
is unequivocally wholly choice - i somehow support rubbish collection. rubbish collection even occur there effects still running?
i'm also extraordinary presumably i should set things _null, generally timers. sufficient only stop() timer rubbish collected there references left it.
Comments
Post a Comment