Skip to content

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

@Kshitiz-Bansal

Description

@Kshitiz-Bansal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions