-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A combination of Cast and Slice leads to AccessViolationException #674
Comments
Good catch!! Thank you 😄 |
@Sergio0694 when will this be released? |
@Sergio0694 do you have some ETA of when this will be released? I can see you added it to It's just so I can decide if I should implement a workaround for this, or if I can wait for |
I don't have an exact ETA just yet, but tentatively I'd say probably around the first half of June or so? |
I guess, I could use one of the nightly builds for now. I will use Thanks |
Describe the bug
The following code throws
System.AccessViolationException
:Regression
No response
Steps to reproduce
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
Nuget package version(s)
8.2.0
Additional context
The problem disappears when there's no
Cast()
(so, we are summing over aSpan
of bytes). It also disappears when there's noSlice()
(so, we are summing overdata
instead ofslice
).Help us help you
No, just wanted to report this
The text was updated successfully, but these errors were encountered: