Unable to connect to any of my industrial usb3 cameras in winui3 C#

Microsoft Windows

Active Members
Joined
Dec 10, 2024
Messages
23,610
We are porting our UI from Win Forms/WPF to WinUI3 C#. My classes to connect and control industrial cameras like Basler and IDS usb3 versions work as expected in WPF. But I am unable to connect to them when using WinUI3. All of the problems (the errors aren't the same) seem related to threading. I converted my camera class to .Net Standard 2.0. That made no change (works on WPF fails on WinUI3). This is errors from my Immediate Window: Exception thrown: 'System.Runtime.InteropServices.SEHException' in Basler.Pylon.dllException thrown: 'System.Runtime.Interop

Continue reading...
 
Back
Top