delsys-inc / Delsys-Python-Demo

Python example GUI that utilizes the Delsys API
10 stars 3 forks source link

System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) #7

Open Kshitiz-Bansal opened 2 years ago

Kshitiz-Bansal commented 2 years ago

Hi guys. I am trying to use this python example project to understand the API's usage. After putting in the key and the license, when I run the Python_Demo_MulitThreaded.py file, It gives me this error.

Could someone please help me resolve this error?

System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at DelsysAPI.Utils.Trigno.SLUSBXpressDLL_WIN.SI_GetNumDevices(UInt32& lpdwNumDevices)
   at DelsysAPI.Utils.Trigno.SLUSBXpressDLL.SI_GetNumDevices(Int32& lpdwNumDevices)
   at DelsysAPI.Utils.Trigno.BaseComms.CountConnectedBases()
   at DelsysAPI.Pipelines.Pipeline.InitDataSource(IDelsysDevice ds)
   at DelsysAPI.Pipelines.Pipeline..ctor(IDelsysDevice dev)

From googling, I found out that it may be a 32 - 64 bits mismatch. And honestly, I don't understand how to solve it