I wrote a multi-threaded FTP downloader in C # .NET using libcurl.NET.
Everything works fine on my machine, but when I provide the application (exe + libcurl.dll + 2 libcurl C # associated with a DLL) to my friend who runs Win64, the application crashes.
After adding the catch catch to whole Main () function, I was able to get the error message I read: "An attempt was made to load a program with the wrong format (exception from HRESULT = 0x8007000b)"
After searching Google for a while, I found advice to enable unmanaged code in my project settings. I recompiled my application and LibCurlNet.dll with the flag set, but this did not help.
What can cause such a problem?
source
share