mattcowell
Topic Author
Posts: 1
Joined: 15 Aug 2026, 10:14
Contact:

C++ ObservableCollection Replacement Causing NoesisGUI Binding Crash

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.
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

Re: C++ ObservableCollection Replacement Causing NoesisGUI Binding Crash

18 Aug 2026, 10:30

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.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 5 guests