[1.3.0b4] Indexer OnPropertyChange event bug
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.
-
sfernandez
Site Admin
- Posts: 3154
- Joined:
Re: [1.3.0b4] Indexer OnPropertyChange event bug
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
Excellent thanks.
In the future should I just post on the bug tracker, and not here?
In the future should I just post on the bug tracker, and not here?
Re: [1.3.0b4] Indexer OnPropertyChange event bug
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!
Thanks!
Who is online
Users browsing this forum: No registered users and 1 guest