Corsinvest / cv4ab-api-dotnet

API for accessing Allen-Bradley PLC data over Ethernet Windows/Linux .NET Core
GNU General Public License v3.0
45 stars 23 forks source link

x64 vs x86 native library #5

Closed RobertoPeters closed 5 years ago

RobertoPeters commented 5 years ago

Assumed was that the native library was 64 bits, but as it seems it is a 32 bits version (of Windows anyway). It would be nice if we got it to work for 64 bits application (like I have). I ran your test project, but that project also fails at the first call of a native method (creating a tag)

franklupo commented 5 years ago

Hi, Have you tried to compile the library from the original project "https://github.com/kyle-github/libplctag" and replace it?

Best regards

RobertoPeters commented 5 years ago

Hi, No I haven't. But I was thinking that the nuget package (and this project anyway) should be fixed for all users. I would rather like to use the nuget package instead of compiling it myself.

I know it is a 32 bits version, because if I change the project of this solution to 32 bits, it runs. When I use AnyCPU or x64 I get a bad image format exception. So, the DLL is clearly a 32 bits version (Windows)

franklupo commented 5 years ago

Hi, I'm creating a new version for nuget. I will release soon. 32/64 for windows and linux.

Best regards

manujshanker commented 5 years ago

Hi Frank, Do you have any date in mind when you are planning to release 64 bit version? I am working on a project which is dependant on plctag.dll (64 bit) and am looking forward to the next release.

Best, Manuj

franklupo commented 5 years ago

Hi, New version released.

franklupo commented 5 years ago

News?

manujshanker commented 4 years ago

Works! Thanks.