MSVCP140.dll初始化失败
启动中丢弃了此错误,
Unhandled exception at 0x00007FF8DC378C34 (msvcp140.dll) in TimexLPRService.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
我的应用程序在堆栈框架控件中的
我看到msvcp140.dll!mtx_do_lock(_mtx_internal_imp_imp_t *mtx *mtx,const xtime *target) const const xtime *target *target是null(它在当地显示)(
如果我在当地显示 )在启动时出现错误(错误代码0xc000000142)。 我有msvcp140.dll和vcruntime140.dll在可执行文件附近
我使用Visual Studio 2019和VCPKG构建了我的应用程序,
我想知道如何调试这个问题,以了解出了什么问题或可能出现此类问题的可能原因
My application throws this error on the start
Unhandled exception at 0x00007FF8DC378C34 (msvcp140.dll) in TimexLPRService.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
In Stack Frame control I see msvcp140.dll!mtx_do_lock(_Mtx_internal_imp_t *mtx, const xtime *target)
const xtime *target is null (it shows in locals control)
If I start application manually it tells I have error on startup (error code 0xc0000142).
I have msvcp140.dll and vcruntime140.dll near the executable
I build my application with Visual Studio 2019 and vcpkg
I want to know how I can debug this problem to understand what went wrong or what possible causes of such problem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能有不同的原因。
#1 (update)
您可能在某处出现空指针异常:
要修复此问题,请尝试使用 IDE 的调试器运行代码,它应该会在第一次访问冲突时中断。
#2
“
MSVCP140.dll
”名称在多个版本之间共享,例如 MSVC 2015 和 MSVC 2019。只要安装了最新的 redist,就应该没有问题。
但是会发生崩溃,例如,如果:
.dll
版本。There can be different reasons.
#1 (update)
You may have a null pointer exception somewhere:
To fix, try running your code using IDE's debugger, and it should break on the first access violation.
#2
The "
MSVCP140.dll
" name is shared between multiple versions, for example MSVC 2015 and MSVC 2019.As long as the latest redist is installed, there should be no problems.
But crashs happen, for example if:
.dll
version is placed beside your executable.