Solved Closed

DLL error MSVCP140.dll

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?
18 answers Last reply Best Answer
More about dll error msvcp140 dll
  1. 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
  2. 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?
  3. DISM cleans the image that windows uses if you run a reset, it also fixes the files SFC uses to clean the others. DISM = Deployment Image Servicing and Management.

    I would run it just to see if it finds anything
  4. 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% ]
  5. Colif said:
    DISM cleans the image that windows uses if you run a reset, it also fixes the files SFC uses to clean the others. DISM = Deployment Image Servicing and Management.

    I would run it just to see if it finds anything


    Thanks. It finally just updated to 40% so it's running. Too bad it goes a few minutes without any indication it's running.
  6. it will get files off windows update if it finds any it needs to replace, so give it time and see if it finishes
  7. 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>
  8. Power cycled to see if the error still happens. It did.
  9. Thinking of re-installing Galaxy but hope it doesn't remove the large game installs it has done.
  10. Quote:
    Download Microsoft Visual Studio but the x86 version even if your Window is X64 bit it will solve your problem 100% :)


    https://www.gog.com/forum/the_witcher_3_wild_hunt/msvcp140dll_and_vcruntime140dll_errors
  11. 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...
  12. yeah, i don't like guessing either. 10 different versions of visual studio where?

    i found the C++ advice i think as well.
  13. Colif said:
    yeah, i don't like guessing either. 10 different versions of visual studio where?

    i found the C++ advice i think as well.


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

    A bit stuck.
  14. Best answer
    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.
  15. There was a thread with a link what to reinstlal, but it didn't help. I tried to uninstall galaxy to reinstall it, and even the uninstall gets the same error so it can't be uninstalled.
  16. I opened a ticket with gog and they said to uninstall both 2015 C++ and install 64 and 32 bit versions they linked - and now galaxy runs.
  17. Craig234 said:
    I opened a ticket with gog and they said to uninstall both 2015 C++ and install 64 and 32 bit versions they linked - and now galaxy runs.


    well, thats a relief :)
  18. Thanks for paying attention to the thread.
Ask a new question

Read More

Windows DLL