You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A combination of Cast and Slice leads to AccessViolationException #674
Create a project targeting net7.0, paste the above code into the `Main` method, run it.
Expected behavior
The code is supposed to calculate a sum of all values in the slice (in this case, 0).
Screenshots
IDE and version
VS 2022
IDE version
17.4.4
Nuget packages
CommunityToolkit.Common
CommunityToolkit.Diagnostics
CommunityToolkit.HighPerformance
CommunityToolkit.Mvvm (aka MVVM Toolkit)
Nuget package version(s)
8.2.0
Additional context
The problem disappears when there's no Cast() (so, we are summing over a Span of bytes). It also disappears when there's no Slice() (so, we are summing over data instead of slice).
@Sergio0694 do you have some ETA of when this will be released? I can see you added it to 8.2.1, but I could not find a planned/estimated release date for that?
It's just so I can decide if I should implement a workaround for this, or if I can wait for 8.2.1.
Activity
Sergio0694 commentedon Apr 27, 2023
Good catch!! Thank you 😄
ChristophLindemann commentedon Apr 28, 2023
@Sergio0694 when will this be released?
ChristophLindemann commentedon May 10, 2023
@Sergio0694 do you have some ETA of when this will be released? I can see you added it to
8.2.1, but I could not find a planned/estimated release date for that?It's just so I can decide if I should implement a workaround for this, or if I can wait for
8.2.1.Sergio0694 commentedon May 10, 2023
I don't have an exact ETA just yet, but tentatively I'd say probably around the first half of June or so?
Can you use a nightly package from main in the meantime? The feed is this one:
https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-MainLatest/nuget/v3/index.json
ChristophLindemann commentedon May 10, 2023
I guess, I could use one of the nightly builds for now.
I will use
8.2.1-build.2Thanks