ListView is not currently being Garbage Collected
PureWeen opened this issue · 4 comments
Description
Breaking out remaining work for: #18365
Add tests to ensure that ListView is GC'd.
Link to public reproduction project repository
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Deleted my previous comment because it contained some bad intel based on my local build just being gummed up.
Anyway... calling Dispose()
on the ListView's handler is enough to fix the memory leak on iOS. It could probably be rewritten with some weak references to not need this, but at least the workaround is available.
@AdamEssenmacher Hi Adam, I have just ran into this, can you please share your work around?
@brentpbc you can see an example of how to call Dispose()
on a handler in my memory toolkit .
Or, you can use its provided attached property to do this for you automatically :)