[1.3.0b4] Indexer OnPropertyChange event bug
Posted: 16 Jan 2017, 21:33
Hi all,
I have just integrated 1.3.0b4 into Universe or Nothing.
First of all, let me say thank you for an excellent update!
Unfortunately I have encountered a memory bug with Indexers when accessing a property within the returned value, after that value has changed.
For example, here an Indexer binging which I have:
Content="{Binding Player.Crew[tactical].Username}"
Everything works ok at first, until the value of Binding Player.Crew[tactical] changes. Then when I call OnPropertyChanged("Item[]") Noesis throws an exception: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
If I change the binding so that the return value, and not a property within it, is used then there are no errors:
Content="{Binding Player.Crew[tactical]}"
I have submitted a bug report, issue 0001009.
P.S.: I have not encountered this issue on 1.2.6 using the same markup and view model.
I have just integrated 1.3.0b4 into Universe or Nothing.
First of all, let me say thank you for an excellent update!
Unfortunately I have encountered a memory bug with Indexers when accessing a property within the returned value, after that value has changed.
For example, here an Indexer binging which I have:
Content="{Binding Player.Crew[tactical].Username}"
Everything works ok at first, until the value of Binding Player.Crew[tactical] changes. Then when I call OnPropertyChanged("Item[]") Noesis throws an exception: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
If I change the binding so that the return value, and not a property within it, is used then there are no errors:
Content="{Binding Player.Crew[tactical]}"
I have submitted a bug report, issue 0001009.
P.S.: I have not encountered this issue on 1.2.6 using the same markup and view model.