【发布时间】:2021-12-14 18:37:30
【问题描述】:
直到昨天我都很好地使用了 VS2019。 今天,当我使用 F5 或 Ctrl-F5 运行我的 c++ 程序时,我收到了错误消息框。 我有下一条调试消息。
'cpp.exe' (Win32): Loaded 'C:\Users\user\source\repos\learn\x64\Debug\cpp.exe'. Symbols loaded.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'cpp.exe' (Win32): Unloaded 'C:\Windows\System32\KernelBase.dll'
'cpp.exe' (Win32): Unloaded 'C:\Windows\System32\kernel32.dll'
The thread 0x2a54 has exited with code 3221225794 (0xc0000142).
The program '[13484] cpp.exe' has exited with code 3221225794 (0xc0000142) 'DLL Initialization Failed'.
有时,它适用于下一个调试消息。
'cpp.exe' (Win32): Loaded
'C:\Users\user\source\repos\learn\x64\Debug\cpp.exe'. Symbols loaded.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140_1d.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'.
The thread 0x2e88 has exited with code 0 (0x0).
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'.
The thread 0x477c has exited with code 0 (0x0).
The thread 0x335c has exited with code 0 (0x0).
The program '[17728] cpp.exe' has exited with code 0 (0x0).
我认为加载 vcruntime*.dll 有问题 但我不知道该怎么办。
有线的东西有时会起作用。
任何建议将不胜感激。
【问题讨论】:
-
也许用不同的选项重新安装整个 vs 可以解决这个问题。没有更多的问题了。谢谢。
-
是的,我的第一个赌注也是 VS 安装损坏。如果现在能用就好了。
标签: visual-studio visual-c++ dll visual-studio-2019