C++ ObservableCollection Replacement Causing NoesisGUI Binding Crash
Posted: 15 Aug 2026, 10:20
Hi everyone, I'm running into a C++ issue with NoesisGUI 3.2.10 in a native Windows application and could use some advice. I have a custom `Noesis::Control` with a dependency property bound to an `ObservableCollection`, and the initial binding works correctly, but when I replace the collection from C++ after the view has loaded, Noesis sometimes crashes during the binding/layout update. I'm using Visual Studio 2022 on Windows 11 x64, and the UI updates are all happening on the main thread. Interestingly, updating the existing collection with `Clear()` and `Add()` doesn't crash, but I can occasionally see the old items until the next layout pass. Has anyone dealt with replacing an `ObservableCollection` through a dependency property from native C++? I'm wondering whether I'm missing a notification or lifetime requirement, or whether the collection shouldn't be replaced while Noesis is processing its update cycle. Any guidance on the recommended pattern would be really helpful.