The version I am using is: Opal Kelly Board API Version 5.0.2
I am using the following two DLL’s: libFrontPanel-csharp.dll and libFrontPanel-pinv.dll
My project builds, runs and powers on. But if I try to power cycle the power supply that is powering the board the entire app crashes. The power supply was tested without the opal kelly board attached and it power cycles fine without crashing the app. However, with that test we did have a acroname hub hooked up (with devices attached) to test it, and when those devices disconnect the app stays running. Calling close, dispose on the it does not seem to help. I have placed try catches around calls, check for error codes (including NoError) but it still crashes.
The only error catching I can get is from the Windows Event Viewer which has the following information in it:
Faulting application name: OurAPP.exe, version: 1.9.0.5, time stamp: 0x61672732
Faulting module name: libFrontPanel-pinv.DLL, version: 5.0.2.0, time stamp: 0x5b56182a
Exception code: 0xc000041d
Fault offset: 0x000000000003f1cf
Faulting process id: 0xfec
Faulting application start time: 0x01d8ee01e3012e7a
Faulting application path: C:\OUR APP PATH
Faulting module path: C:\OURAPP\OURAPPFOLDER\Libraries\Managed\x64\OpalKelly\libFrontPanel-pinv.DLL
Report Id: d0e60634-923c-4015-bc99-b4b27dfc2a9b
Faulting package full name:
Faulting package-relative application ID:
OS Name|Microsoft Windows 10 Enterprise|
Version|10.0.19044 Build 19044|
System Type x64-based PC
Side note: I was wondering why in the documentation it mentions a Monitor class but this is unavailable to C# it seems it wasn’t brought over is this correct?
I also did search for similar issues but none them helped me since they were issues like not having both dlls in place, or in the right spot. (I would upload an image but I can’t as I am newb).
I did read this one: Front Panel DLL Crash and others.