C
C#5mo ago
obi

Simple yolo webcam throwing System.InvalidOperationException: 'The calling thread cannot access this

any help is SUPER appreciated. This is in WPF and the error is at the end of my WebcamAsync task
2 Replies
TizzyT
TizzyT5mo ago
await _dispatcher.InvokeAsync(() => WebCamImage.Source = bitmapSource);
await _dispatcher.InvokeAsync(() => WebCamImage.Source = bitmapSource);
What is WebCamImage? are you sure its on the same thread?
obi
obiOP5mo ago
WebCamImage is my image that i use to display the frames of the video its made in xaml so I would believe so

Did you find this page helpful?