visioforge / .Net-SDK-s-samples

VisioForge .Net SDKs samples - Video Capture SDK, Video Edit SDK, Media Player SDK, Media Blocks SDK, Video Fingerprinting SDK
https://www.visioforge.com
MIT License
51 stars 26 forks source link

spinnakerNET_v140.dll could not be loaded #24

Closed BergEmilio closed 4 months ago

BergEmilio commented 5 months ago

I download the sample code and try to access FLIR USB3 camera, but the dll for FLIR camera can not be loaded on any framework.

Message and stacktrace as below: (I only paste info about .net 7.0, but it's almost the same on other frameworks)

A procedure imported by 'D:\VS2022\Video Capture SDK X (crossplatform)\WPF\CSharp\USB3V-GigE Spinnaker\bin\Debug\net7.0-windows\SpinnakerNET_v140.dll' could not be loaded.

VisioForge.Plugins.Spinnaker.SpinnakerEnumerator.EnumerateAsync.AnonymousMethod__10_0() System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, object) System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, object) System.Threading.Tasks.Task.ExecuteWithThreadLocal(ref System.Threading.Tasks.Task, System.Threading.Thread) USB3V_GigE_Spinnaker.MainWindow.Window_Loaded(object, System.Windows.RoutedEventArgs) at MainWindow.xaml.cs

I am using VS2022 and try to update to latest version. Do I miss any thing to run this correctly?

visioforge commented 4 months ago

Hi

It's a problem with the Spinnaker assembly that is available only for .Net 4.x. We're working on an update that will use C++ DLL.

visioforge commented 4 months ago

The problem was resolved in v15.9.66.