jamescowell
Topic Author
Posts: 1
Joined: Today, 08:47
Contact:

NoesisGUI 3.2.8 crashes when updating a DynamicResource inside a ListView

Today, 08:53

Hi everyone,
I'm using NoesisGUI 3.2.8 with Unity 2022.3 on a Windows 11 project. I'm building an inventory screen where each item is displayed in a ListView, with its icon, quantity and background colour bound to a view model. I've noticed something strange when updating the inventory. If I remove an item and immediately add another one to the same collection, the ListView occasionally crashes with an access violation. It doesn't happen when adding or removing items separately. It seems more likely when several changes happen within the same frame. I initially suspected my ObservableCollection implementation, so I tested the same logic with a simple WPF application and couldn't reproduce the crash there. Has anyone run into similar behaviour with NoesisGUI's collection updates? I'm particularly interested in whether collection notifications need to be deferred until the next frame or handled through the dispatcher. I'd rather not rebuild the whole inventory system just to work around this, so any advice would be appreciated.

Who is online

Users browsing this forum: No registered users and 4 guests