Page 1 of 1

C++ ObservableCollection Replacement Causing NoesisGUI Binding Crash

Posted: 15 Aug 2026, 10:20
by mattcowell
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.

Re: C++ ObservableCollection Replacement Causing NoesisGUI Binding Crash

Posted: 18 Aug 2026, 10:30
by sfernandez
Could you please create a small repro project, perhaps by modifying one of the samples included in the SDK so we can investigate?

In any case, have you tried to upgrade to the latest 3.2.13 version? There have been many fixes since 3.2.10 was released.