This project has moved. For the latest updates, please go here.
2
Vote

Xamarin.iOS TwoWay binding memory leak

description

comments

ipho wrote Jul 12, 2016 at 4:09 PM

Any suggestions?

lbugnion wrote Jul 12, 2016 at 7:02 PM

Hi,


While we take care of being as weak referenced as possible, it is possible that some edge cases create issues. I will take a look as soon as I can. In the mean time, please detach the binding before your objects get disposed, for example when you navigate away from the page containing the binding.

Thanks

Laurent

ipho wrote Jan 27 at 11:57 AM

Hi,

Any updates on this?
I do follow your advice and detach binding when I don't need them any more, but sometimes there is no place you can detach. For example when using bindings inside UITableViewCell which has no explicit lifetime.

ipho wrote Jan 27 at 12:02 PM

Also I wouldn't say that this is edge case. TwoWay binding is most common case I can image.