[Windows] Adding Items to ObservableCollection from other UIThread in ListView Throws System.Runtime.InteropServices.COMException #27174
Labels
area-controls-listview
ListView and TableView
platform/windows 🪟
s/triaged
Issue has been reviewed
s/try-latest-version
Please try to reproduce the potential issue on the latest public version
t/bug
Something isn't working
Description
Description
In .NET MAUI, a System.Runtime.InteropServices.COMException is encountered when adding data to a shared ObservableCollection (staticData.TestCollection) from a background thread. This problem is specific to the Windows platform, as ObservableCollection requires all operations to be performed on the same thread on which it was created, typically the UI thread, and does not support cross-thread modifications.
This issue occurs exclusively on the Windows platform and does not affect other platforms.
Note: While fixing this issue enable the following UITest in HostApp: Issue6472
In Windows,
Steps to Reproduce
Expected Behavior:
Actual Behavior:
Link to public reproduction project repository
No response
Version with bug
9.0.12 SR1.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: