Faerdan
Topic Author
Posts: 73
Joined: 02 Oct 2015, 09:11
Location: Galway, Ireland
Contact:

[1.3.0b4] Indexer OnPropertyChange event bug

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

Re: [1.3.0b4] Indexer OnPropertyChange event bug

17 Jan 2017, 09:42

Thanks for reporting, I will take a look and inform you if I figure out what's going on via the bugtracker.
 
Faerdan
Topic Author
Posts: 73
Joined: 02 Oct 2015, 09:11
Location: Galway, Ireland
Contact:

Re: [1.3.0b4] Indexer OnPropertyChange event bug

17 Jan 2017, 16:36

Excellent thanks.

In the future should I just post on the bug tracker, and not here?
 
User avatar
jsantos
Site Admin
Posts: 3939
Joined: 20 Jan 2012, 17:18
Contact:

Re: [1.3.0b4] Indexer OnPropertyChange event bug

17 Jan 2017, 21:22

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!

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 5 guests