5 Replies Latest reply on Sep 15, 2011 11:28 AM by Flex harUI

    [Flex mobile] views not garbage collected

    ChristophFlex Level 1

      Hi everyone,

       

      some of my views in my apps don't get  garbage collected. It seems like the problem is caused by bindings. So i  changed the useWeakReference to true:

       

      BindingUtils.bindSetter(popupRelatedPropertyChanged, this, ["presenter", "showUpdateDialog"],false,true);

       

      But this doesn't solved the problem. The view is still not garbage collected. The following code solved the problem finally:

       

      var watcher:ChangeWatcher=BindingUtils.bindSetter(popupRelatedPropertyChanged, this, ["presenter", "showUpdateDialog"],false,true);

       

      ........

       

      watcher.unwatch();

       

      So why the "useWeakReference" property doesnt't work here?