Hello Guest it is April 19, 2024, 11:03:09 AM

Author Topic: msvcp140.dll missing  (Read 1728 times)

0 Members and 1 Guest are viewing this topic.

msvcp140.dll missing
« on: December 28, 2019, 09:08:38 AM »
Macros will not run in the Edit/Debug scripts editor. This is the error message: Attached

The file does appear to be in the Mach4 folder. See attached.

I’m using Mach4 version 4.2.0.4300 build 4300 Windows 7 64 bit. I’ve reinstalled Mach4 to no avail. Any help would be appreciated.
Thank you,

Offline DanP

*
  •  10 10
    • View Profile
Re: msvcp140.dll missing
« Reply #1 on: December 29, 2019, 12:10:57 PM »
Not sure but maybe this will help.
https://www.youtube.com/watch?v=5A9cuz0b7Ho

Dan
Re: msvcp140.dll missing
« Reply #2 on: December 29, 2019, 01:46:21 PM »
Thank you.
   msvcp140.dll was in C:\windows\System32. I also put it in  C:\windows\SysWOW64.
   Now I don't get the msvcp140.dll missing error but get this error in the edit/debug screen: Attached

"ZeroBraneStudio\bin\lua53.exe: error loading module 'machipc' from file 'C:\Mach4Hobby\Modules/machipc.dll':
   %1 is not a valid Win32 application."

I've replaced machicp_dll from another machine to no avail. Both machines are 64 bit. one works ok, the other dosn't
Any other help would be appreciated.
Thanks   
« Last Edit: December 29, 2019, 01:48:28 PM by Tony Bullard »

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: msvcp140.dll missing
« Reply #3 on: December 29, 2019, 03:00:40 PM »
A google search on "msvcp140.dll" yielded this:
https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/msvcp140dll-is-missing-in-my-win-10/1c65d6b0-68b8-4b59-b720-3e6a33038389

Just copying DLLs from one location to another is not a safe thing to do on Windows.  In your case, the msvcp140.dll file that goes in SysWOW64 is actually a 32 bit version of that DLL and you copied a 64 bit version in there.

Install the 2015 redistributable package as Administrator. 

Steve
Re: msvcp140.dll missing
« Reply #4 on: December 29, 2019, 04:00:42 PM »
Thank you Steve,
I removed msvcp140.dll from SysWOW64 and installed Microsoft Visual C++ 2015 Redistrubable (X64). It did put msvcp140.dll in SysWOW64. I still get the same  machipc.dll' as above.
I do appreciate the help. Thank you.

Tony
« Last Edit: December 29, 2019, 04:14:23 PM by Tony Bullard »
Re: msvcp140.dll missing
« Reply #5 on: December 29, 2019, 04:15:48 PM »
I also installed Microsoft Visual C++ 2015 Redistrubable (X86) for 32 bit. And reinstalled Mach4. No change.
« Last Edit: December 29, 2019, 04:19:17 PM by Tony Bullard »
Re: msvcp140.dll missing
« Reply #6 on: December 29, 2019, 04:37:20 PM »
   %1 is not a valid Win32 application."

Not sure if it helps, but this error typically means that something is trying to load a 64-bit DLL, while it is actually expecting a 32-bit one.

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: msvcp140.dll missing
« Reply #7 on: December 29, 2019, 07:01:10 PM »
You may also be experiencing some some compatability problems with an older version of Mach.  The machipc.dll is in the Modules directory.  It HAS to be the same version that the rest of LUA is.  For instance, if your machipc.dll is the older one that is compiled for LUA 5.2, then the newer executable with LUA 5.3 in them will not load it. 

I would start out with a fresh install of Mach and see if the problems go away. 

There is no telling what is what since some DLLs were manually copied, unfortunately.  64 bit where a 32 bit DLL should be, etc...  Or vice versa.  So I would manually delete them all (System32 and SysWOW64) directory and reinstall the redistributable package.  Do not rely on the reditributable package to overwrite a bad DLL.  It may just check for the existence of the DLL and skip it.  Then check that a NEW msvcp140.dll files is in the System32 and SysWOW64 directories.  You may need to reboot the machine after all of this so that its' DLL cache is up to date. 

Steve
Re: msvcp140.dll missing
« Reply #8 on: December 30, 2019, 09:27:18 AM »
First the good news. No more errors and the editor/debug works as it should! The bad news is I don’t know exactly why. I did all as Steve said, even deleted the Mach4Hobby directory. Deleted all system32 and systemWOW64 msvcp140.dll files and uninstalled Microsoft Visual C++ 2015 Redistrubable (X86) and (x64). Installed Microsoft Visual C++ 2015 Redistrubable (X64) and Mach4Hobby. Then right back to my original problem. While working in the debugger a message came up something like this. “Some features of ZeroBrane may not work because of public/privet network settings. Click here to repair” I did and it works. I’m sorry I didn’t capture the message. I’m not much help.

Thank you all for the help.
Tony
Re: msvcp140.dll missing
« Reply #9 on: November 08, 2020, 09:22:27 AM »
I ran into the same issue for some reason.  All I had to do is remove and re-install:
Microsoft Visual C++ 2015 Redistrubable (X64)
Microsoft Visual C++ 2015 Redistrubable (X32)

Everything seems to work now.