You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
On Android, the item renderers of a CollectionView never get disposed. Dispose is only called on the CollectionView renderer itself. Its children, the item renderers, are ignored. This can lead to potential memory leaks.
This is not an issue on iOS or UWP. It's only an issue on Android. Dispose is called on the item renderers for iOS and UWP.
Steps to Reproduce
Place a breakpoint inside the Dispose method for any child/item renderer used by the CollectionView.
I have created an example to easily demonstrate the issue:
Place breakpoints in the Dispose method of MyCheckBoxRenderer.cs
Click Open Test
Click the Back button to close Test page
Does the breakpoint halt the program? If so, good. The Dispose method was called.
Expected Behavior
When the CollectionView is disposed, its active item/child renderers should also be disposed.
Actual Behavior
When the CollectionView is disposed, its active item/child renderers are never disposed on Android.
iOS & UWP work. Dispose is called on item/child renderers for iOS & UWP apps.
Description
On Android, the item renderers of a CollectionView never get disposed. Dispose is only called on the CollectionView renderer itself. Its children, the item renderers, are ignored. This can lead to potential memory leaks.
This is not an issue on iOS or UWP. It's only an issue on Android. Dispose is called on the item renderers for iOS and UWP.
Steps to Reproduce
Place a breakpoint inside the Dispose method for any child/item renderer used by the CollectionView.
I have created an example to easily demonstrate the issue:
Expected Behavior
When the CollectionView is disposed, its active item/child renderers should also be disposed.
Actual Behavior
When the CollectionView is disposed, its active item/child renderers are never disposed on Android.
iOS & UWP work. Dispose is called on item/child renderers for iOS & UWP apps.
Basic Information
Environment
Show/Hide Visual Studio info
Screenshots
Reproduction Link
https://github.com/billvenhaus/CollectionViewDisposal
The text was updated successfully, but these errors were encountered: