DLL error MSVCP140.dll

Status
Not open for further replies.

Craig234

Distinguished
Apr 23, 2006
371
5
18,795
I have a problem that my PC hangs when rebooting, and now this has likely caused a problem from Windows updates.

When I recently had a hang, and rebooted, and it applied updates, and hung, and I power cycled again (and it booted and hung again which it does for some reason sometimes and then runs stably for a long time) and I power cycled again, this time it came up and said the game site gog.com loader program galaxyclient.exe had an error:

'C:\Windows\SYSTEM32\MSVCP140.dll is either not designed to run on Windows or it contains an error... (edited) Error status: 0xc000012f.

I googled the error and a similar one on the same file says to get the file (from them) and install it.

For whatever reason the video said this is common with game programs.

So, I have a couple options. They offer several versions of the file - ten - half 64 bit and half 32 bit. I'm on 64 bit, but assume from the directory in the error it's the 32 bit file.

I could extract the latest version of the 32 bit file from their site to my SYSTEM32 directory.

Or, I could try re-installing the program and have no idea whether it installs this file or not.

Any suggestions?
 
Solution
interesting, if I go to control panel;add/remove programs I can't see any versions of visual studio but if I go to settings/system/Apps & features I see 6 different versions of visual studio but they aren't all 2015

2 versions of 2012 version 11.0.61030
2 versions of 2013 version 12.0.30501
2 versions of 2015 version 14.0.24210

the difference between the 2 versions is one is X86 (32 bit) and the other is X64 (64 bit)

I don't know why you have 10 but its clear pattern continues and I could guess difference is version numbers (you might have version 13 for instance, not sure what other two are though?)

Problem is we don't know which version it wants you to change. I think the software is chasing a particular version of the dll but...

Colif

Win 11 Master
Moderator
not a good idea to just download dll files

try this
right click start button
choose command prompt (admin)
type SFC /scannow and press enter

once its finished, copy paste this command in and press enter:
DISM /Online /Cleanup-Image /RestoreHealth

once its done, rerun SFC /scannow if it had problems fixing everything first time and restart PC
 

Craig234

Distinguished
Apr 23, 2006
371
5
18,795
Thanks, that's very helpful. Can you clarify what the DISM part does? I ran the SFC and it said 'did not find any integrity violations'. That's not quite the same as 'had problems fixing'. Given that should i still run the DISM next?
 

Craig234

Distinguished
Apr 23, 2006
371
5
18,795
Heck I ran it anway. It has say without any update for a couple minutes here:

C:\Windows\system32>DISM /Online /Cleanup-Image /RestoreHealth

Deployment Image Servicing and Management tool
Version: 10.0.10240.16384

Image Version: 10.0.10240.16384

[=========== 20.0% ]
 

Craig234

Distinguished
Apr 23, 2006
371
5
18,795


Thanks. It finally just updated to 40% so it's running. Too bad it goes a few minutes without any indication it's running.
 

Craig234

Distinguished
Apr 23, 2006
371
5
18,795
OK it finished but doesn't say it made any changes.

C:\Windows\system32>DISM /Online /Cleanup-Image /RestoreHealth

Deployment Image Servicing and Management tool
Version: 10.0.10240.16384

Image Version: 10.0.10240.16384

[==========================100.0%==========================]
The restore operation completed successfully.
The operation completed successfully.

C:\Windows\system32>
 

Craig234

Distinguished
Apr 23, 2006
371
5
18,795
Interesting. A google found me a similar suggestion but with C++ libraries. I re-installed them and re-installed Galaxy - no fix.

I tried to re-install the Visual Studio files in the link you posted, but the install process aborted saying 'earlier version already installed'.

It said to uninstall that, but there are like 10 different programs saying they're difference versions of Visual Studio.

Only one is dated today - others the last couple days - so I could guess and try that one, but...
 

Craig234

Distinguished
Apr 23, 2006
371
5
18,795


10 different versions in Windows uninstaller, all 'Microsoft Visual C++' versions.

A bit stuck.
 

Colif

Win 11 Master
Moderator
interesting, if I go to control panel;add/remove programs I can't see any versions of visual studio but if I go to settings/system/Apps & features I see 6 different versions of visual studio but they aren't all 2015

2 versions of 2012 version 11.0.61030
2 versions of 2013 version 12.0.30501
2 versions of 2015 version 14.0.24210

the difference between the 2 versions is one is X86 (32 bit) and the other is X64 (64 bit)

I don't know why you have 10 but its clear pattern continues and I could guess difference is version numbers (you might have version 13 for instance, not sure what other two are though?)

Problem is we don't know which version it wants you to change. I think the software is chasing a particular version of the dll but not knowing that is a problem. I wonder how you find out. we know we need to replace a version of the X86 file but not what version whatever game actually wants. If its gog, need to figure out which it wants.
 
Solution
Status
Not open for further replies.