[fpc-pascal] FP.exe error in x86_64-Win64
James Richters
james at productionautomation.net
Fri Aug 9 15:39:51 CEST 2019
I am not using libusb in my project yet… all that is still just in separate test programs. This is the original version of my project, just compiled for 64bits… I had to make some other changes to it. I have never needed to install anything else to get my program to run. I re-compiled it back to win32 and it runs fine again.
I think what your are saying is that I probably have something that has a dependency on it, and somehow I already end up having the win32 version of the DLL but I don’t have the 64 bit version
From: fpc-pascal <fpc-pascal-bounces at lists.freepascal.org> On Behalf Of Jean SUZINEAU
Sent: Friday, August 9, 2019 9:24 AM
To: fpc-pascal at lists.freepascal.org
Subject: Re: [fpc-pascal] FP.exe error in x86_64-Win64
Le 09/08/2019 à 14:19, James Richters a écrit :
Now I have a new problem. I am able to successfully compile and run my project with the text IDE if I use the trunk version of FPC, and I can run the resulting exe just fine on the computer I compiled it on, but when I run it on one of my other computers, one that I was always able to run the win32 version of my program on just fine, the x64 version now comes up with
‘The code execution cannot proceed because MSVCR110.dll was not found. Reinstalling the program may fix this problem’
I do not understand this at all, I never needed anything like that dll before, and I have no idea what it is or why the 64bit version would need it, and I also don’t know why this works fine on my development computer without it and why I need it on my other computers that I have been running the 32bit version of the exact same program on for years.
Any thoughts on this?
Yes , it just seems that libusb relies on MSVCR110.dll. Very likely you have another version on this machine.
I googled for MSVCR110.dll, it pointed to me to the MSVCR fro VisualStudio 2012:
https://www.microsoft.com/en-us/download/details.aspx?id=30679
It happens to me frequently when installing a product on a customer's computer. Depending on the product you can have to install a different version of the redistributable. On some computers the dll is already there, sometimes not. As far as I know Microsoft now forbids you to include the dll directly in your distribution, you need to use their install program which installs it reliably (I think in C:\Windows\System32) and maybe some other stuff around and in the registry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190809/3aaeb464/attachment.html>
More information about the fpc-pascal
mailing list