Page 1 of 1

c#: windows application with peak can basic api and yoct api

Posted: Mon 9. May 2016, 17:23
by CarrocciaGiulia
Hi,
I'm developing, for work, an app and i need to import peak can basic api and yocto api.
When I started debug I had this exception in peak dll: Attempt to load a program with a format not correct. ( Exception from HRESULT : 0x8007000B ).
I searched in internet and I found that the problem was the CPU, so I changed the type of CPU and I restarted the debug but I had the same Exception with yocto api.
I tried to use "Any CPU", but it doesn't work.
How can I solve the problem?

Re: c#: windows application with peak can basic api and yoct

Posted: Tue 10. May 2016, 10:30
by M.Maidhof
Hi,

please check the correct installation of your PCANBasic dlls:

Windows 32-bit systems:
32-bit DLL > Windows\System32

Windows 64-bit system:
32-bit DLL > Windows\SysWOW64
64-bit DLL > Windows\System32

please remove all local PCANbasic.dlls from your application directory.

regards

Michael