C
C#4w 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
TizzyT4w 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
obi4w ago
WebCamImage is my image that i use to display the frames of the video its made in xaml so I would believe so
Want results from more Discord servers?
Add your server