Issues with Phidget22 after migrating to .NET 6.0 framework
Posted: Mon Mar 21, 2022 6:54 am
Hello there,
Ive been working with the Phidget nuget package 1.6.20200709 in a NetCore3.1 WPF application for a while and everything went fine.
We recently decided to move to the .NET6 framework and I came across a new issue : When calling DigitalOutput methods the exe crashes. All information I have are from the event viewer :
Application: Phoenix.Ui.exe
CoreCLR Version: 6.0.322.12309
.NET Version: 6.0.3
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException: Dll was not found.
at Phidget22.Phidget22Imports.Phidget_setOnAttachHandler(IntPtr phid, AttachEvent fptr, IntPtr ctx)
at Phidget22.Phidget.uninitializeBaseEvents()
at Phidget22.Phidget.uninitializeEvents()
at Phidget22.DigitalOutput.Finalize()
An interesting fact is that I have the crash when I launch a published exe , but it works perfectly in VS2022, in both debug and release mode.
I updated the Phidget22 package to the last version 1.10.20220211 and I still have the same problem.
Im wondering if these Phidget22 packages are already compatible with the NET6 framework ? If so any idea on the causes of my issue ?
Thanks a lot!
Ive been working with the Phidget nuget package 1.6.20200709 in a NetCore3.1 WPF application for a while and everything went fine.
We recently decided to move to the .NET6 framework and I came across a new issue : When calling DigitalOutput methods the exe crashes. All information I have are from the event viewer :
Application: Phoenix.Ui.exe
CoreCLR Version: 6.0.322.12309
.NET Version: 6.0.3
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException: Dll was not found.
at Phidget22.Phidget22Imports.Phidget_setOnAttachHandler(IntPtr phid, AttachEvent fptr, IntPtr ctx)
at Phidget22.Phidget.uninitializeBaseEvents()
at Phidget22.Phidget.uninitializeEvents()
at Phidget22.DigitalOutput.Finalize()
An interesting fact is that I have the crash when I launch a published exe , but it works perfectly in VS2022, in both debug and release mode.
I updated the Phidget22 package to the last version 1.10.20220211 and I still have the same problem.
Im wondering if these Phidget22 packages are already compatible with the NET6 framework ? If so any idea on the causes of my issue ?
Thanks a lot!