-
Notifications
You must be signed in to change notification settings - Fork 1.9k
iOS: System.ObjectDisposedException when ListView bound ObservableCollection is changed #4186
Comments
I'm going to chime in here, as I'm running into the same issue. |
Do we have repo? |
|
@rmarinho if you need more from me on this, please tag me again, I can give you temporary access to the application throwing this error. |
@dylanberry access to the app to look at it would be great. you can email me to rumar at microsoft.com Thanks |
I am running into the same issue. Has there been any progress? I am happy to help however I can. Has anyone found a workaround? |
I tried to make a simple repro app and it hasn't worked yet. I'm happy to share traces and logs. |
ok, I now know that this bug happens in my project when I databind to the IsEnabled property of a ViewCell. I am working on a reproduction project now. How do I share that once I have it? |
@dylanberry do you still have the issue ?``Can you help us find a way to reproduce it?! thanks |
If you change the viewcell to a textcell in the code I shared I bet it will reproduce the issue. |
@RPHEngineering I tried that. |
by further investigation on this issue some findings showed up:
i solved the issue by unsubscribing from the event, when the page's OnDisappearing is called |
Any progress on this one? |
Is anyone still experiencing this issue? Thanks! |
We still experiencing this issue in our product. Here is stack trace: System.ObjectDisposedException: Cannot access a disposed object. This is very annoying . |
Description
when an observable collection, which is bound to a listview is changed (new created with 'new'), the app crashes. this only happens in the ios-app, the android-app is working with no problems.
Steps to Reproduce
i tried to create a minimal project to reproduce the behaviour, but it does not occur. even in our project, the crash is not reproducible all the time.
but when it occurs, the stack trace is only in Xamarin.Forms and is always the same:
Expected Behavior
should not crash
Actual Behavior
Unhandled Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Basic Information
The text was updated successfully, but these errors were encountered: