When connecting to Sentech camera, will successfully execute VideoCapture code, but a few seconds later will error out and crash the application. Current code works for other usb cameras perfectly fine using Windows Media Foundation backend, but this DirectShow camera is not working.
Environment
.NET Framework 4.8 running simple WPF app on Windows 11
What did you do when you faced the problem?
Connected to this specific Sentech camera and get the following error messages without exceptions being raised. Program crashes without any other message except for that below
Example code:
var cameraIndex =_availableCameras.IndexOf(_selectedCameraInfo);
_videoCapture = new VideoCapture(cameraIndex);
Output:
An exception occurred.
There is no available device.
An exception occurred.
File coaxlink.cti not found.
An exception occurred.
File KYFGLibGenTL_vc141.cti not found.
An exception occurred.
File siso_gentl.cti not found.
An exception occurred.
File TLActiveSilicon.cti not found.
An exception occurred.
There is no available device.
The program [TestProgram.exe] has exited with code -1073741819 (0xc0000005) 'Access violation'.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Summary of your issue
When connecting to Sentech camera, will successfully execute VideoCapture code, but a few seconds later will error out and crash the application. Current code works for other usb cameras perfectly fine using Windows Media Foundation backend, but this DirectShow camera is not working.
Environment
.NET Framework 4.8 running simple WPF app on Windows 11
What did you do when you faced the problem?
Connected to this specific Sentech camera and get the following error messages without exceptions being raised. Program crashes without any other message except for that below
Example code:
Output:
What did you intend to be?
Successfully connect to device as usual