代码退出 -1073741515 (0xc0000135) '未找到依赖的 dll'
Posted
技术标签:
【中文标题】代码退出 -1073741515 (0xc0000135) \'未找到依赖的 dll\'【英文标题】:code exited -1073741515 (0xc0000135) 'A dependent dll was not found'代码退出 -1073741515 (0xc0000135) '未找到依赖的 dll' 【发布时间】:2020-02-26 10:23:31 【问题描述】:我正在尝试编写一个简单的程序。与 2019 年相比,Windows 10 64 位
调试->x64
遵循[将 Visual C++ 项目配置为目标 64 位平台][1]
#include <windows.h>
#include "res/resource.h"
#include <iostream>
#include <core_api/lsproject.h>
#include <core_api/lslocalworkspace.h>
#include <plugin_api/lsscenecontext.h>
using namespace SCENE_API;
using namespace std;
#include <Commdlg.h>
int main()
LSString filePath;
std::cout << "Hello World!\n";
[LSString][2] 可以在这里找到。
我收到一个错误:
The program '[11460] FAPPS.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
-------------------已编辑--------------- ----------------------
在 Visual Studio 中以调试模式运行可执行文件后,我得到了
'myfirstapp1.exe' (Win32): Loaded 'E:\VS_Programm\FARO_SCENE\myfirstapp1\x64\Debug\myfirstapp1.exe'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'E:\VS_Programm\FARO_SCENE\myfirstapp1\x64\Debug\Core_API.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Symbols loaded.
The thread 0x64c0 has exited with code -1073741515 (0xc0000135).
The thread 0x6604 has exited with code -1073741515 (0xc0000135).
The thread 0x644 has exited with code -1073741515 (0xc0000135).
The program '[25976] myfirstapp1.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
【问题讨论】:
dependencywalker 不支持 Windows 10。问题可能出在您的专有 DLL 上(我建议与您的供应商 faro.com 联系)。 如何安装“ucrtbased.dll”? 如果您在 Windows 10 上,则已安装。它是操作系统的一部分。 我知道,我阅读了有关它的其他答案,更新了窗口,新启动但仍然存在错误。 卸载不是错误。这可能是因为真正的错误可能发生在输出中的这一行之前。 没有什么可以帮忙的。您可能想尝试使用以下依赖项替换:https://github.com/lucasg/Dependencies 【参考方案1】:在进行复杂操作之前,请尝试从 vs 安装程序修复您的 Visual Studio 安装。它的工作形式。然后尝试从 Microsoft 官方网站为您的平台安装最新的 SDK(例如 x64,请小心)。我为我糟糕的英语道歉。来自意大利的问候。 ??
【讨论】:
【参考方案2】:尝试在 Visual Studio 中以调试模式运行您的可执行文件。它打印它试图加载的库。
【讨论】:
以上是关于代码退出 -1073741515 (0xc0000135) '未找到依赖的 dll'的主要内容,如果未能解决你的问题,请参考以下文章
进程以退出代码 -1073741819 (0xC0000005) C++ clion 完成
这是啥错误,我该如何解决?进程以退出代码 -1073740791 (0xC0000409) 结束
使用 OpenCV 退出代码 -1073741819 (0xC0000005)
进程完成,退出代码 -1073740791 (0xC0000409) 错误未打开网站
进程以退出代码 -1073741819 (0xC0000005) Python Tkinter GUI Canvas 更新完成