Page 1 of 1

[1.3.0b4] Indexer OnPropertyChange event bug

Posted: 16 Jan 2017, 21:33
by Faerdan
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.

Re: [1.3.0b4] Indexer OnPropertyChange event bug

Posted: 17 Jan 2017, 09:42
by sfernandez
Thanks for reporting, I will take a look and inform you if I figure out what's going on via the bugtracker.

Re: [1.3.0b4] Indexer OnPropertyChange event bug

Posted: 17 Jan 2017, 16:36
by Faerdan
Excellent thanks.

In the future should I just post on the bug tracker, and not here?

Re: [1.3.0b4] Indexer OnPropertyChange event bug

Posted: 17 Jan 2017, 21:22
by jsantos
You can go directly to the tracker if you want. But if you are unsure about something being a bug or not, asking first here is also fine because it will help future users asking for the same problem.

Thanks!