Skip to content
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

AccessViolationException When Changing Streams #76

Open
thedude61636 opened this issue Feb 17, 2020 · 3 comments
Open

AccessViolationException When Changing Streams #76

thedude61636 opened this issue Feb 17, 2020 · 3 comments

Comments

@thedude61636
Copy link

Using the included demo in this repo selecting a local stream then stopping and selecting another stream causes a System.AccessViolationException in BitmapExtentions.UpdateWith method
image

@jacobbo
Copy link
Owner

jacobbo commented Feb 18, 2020

Is it always reproducible? Another local stream?

@thedude61636
Copy link
Author

Yes it always happens, first starting a local stream stopping then starting another one
This happens if I switch from stream 0 to 1 or from 1 to 0 both will cause the same error
I think one solution to this problem is clearing the bitmap before starting a stream

@ckrc
Copy link

ckrc commented Apr 30, 2020

Clearing the currentFrame and writeableBitmap did solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants