c语言中ntdll.dll,c – ntdll.dll [下面的框架可能不正确/缺失,没有为ntdll.dll加载符号]...

博主在运行C程序时遇到程序突然终止并跳转到ntdll.dll和msvcr100d.dll的错误。尝试了多种解决方法如更改CPU亲和力、重新安装Windows SDK、清理项目等,但问题依然存在。调用堆栈显示错误可能与Windows SDK、Boost、OpenCV和C++运行时库有关。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

几个星期以来,我遇到了这种情况,非常令人沮丧,

我的程序调试非常好,没有错误,当我运行程序时,它执行的初始部分

作业,几秒后它终止到’break continue’选项,并在调用堆栈中看一看,结果证明它是来自ntdll.dll和msvcr100d.dll的错误

它似乎与Windows相关的SDK问题,它似乎也是一个糟糕的指针.

我无论如何都无法控制这一点.

我安装了Windows SDK到7.0但似乎没有任何改变,

使用:Windows 7 64位,Boost 1.48,Visual Studio编译器(完整版),openCV2.3,c.

我尝试了很多选择,

例如.转到任务管理器,右键单击devenv.exe并在“set affinity”中只选择一个

重新安装Windows SDK,

重新安装我自己的项目几次.

什么都没有帮助我,有人可以建议我一个很好的解决方案.

为了更清楚,这是我的调用堆栈

ntdll.dll!77e615de()

[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]

ntdll.dll!77e615de()

ntdll.dll!77e5014e()

msvcr100d.dll!_getptd_noexit() Line 500 C

ntdll.dll!77eb73bc()

ntdll.dll!77ea3c48()

ntdll.dll!77e5016e()

msvcr100d.dll!_getptd_noexit() Line 500 C

ntdll.dll!77eb74df()

ntdll.dll!77eb73bc()

ntdll.dll!77ea3c48()

ntdll.dll!77e5016e()

msvcr100d.dll!_getptd_noexit() Line 500 C

ntdll.dll!77eb74df()

ntdll.dll!77eb73bc()

ntdll.dll!77ea3c48()

ntdll.dll!77e5016e()

msvcr100d.dll!_getptd_noexit() Line 500 C

ntdll.dll!77eb74df()

ntdll.dll!77eb73bc()

ntdll.dll!77ea3c48()

kernel32.dll!770012ea()

kernel32.dll!77001314()

msvcr100d.dll!_getptd_noexit() Line 500 C

ntdll.dll!77eb74df()

ntdll.dll!77eb73bc()

ntdll.dll!77ea3c48()

ntdll.dll!77e5016e()

msvcr100d.dll!_getptd_noexit() Line 500 C

ntdll.dll!77e9b459()

ntdll.dll!77e9b42b()

bowExample.exe!std::_Tree<:_tset_traits>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> >::clear() Line 1415 C++

bowExample.exe!std::_Tree<:_tset_traits>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> >::erase(std::_Tree_const_iterator<:_tree_val>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> > > _First, std::_Tree_const_iterator<:_tree_val>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> > > _Last) Line 1383 C++

bowExample.exe!std::_Tree<:_tset_traits>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> >::_Tidy() Line 1866 + 0x5d bytes C++

bowExample.exe!std::_Tree<:_tset_traits>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> >::~_Tree<:_tset_traits>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> >() Line 792 C++

bowExample.exe!std::set,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> >::~set,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> >() + 0x2b bytes C++

bowExample.exe!set2,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> >::~set2,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> >() + 0x63 bytes C++

bowExample.exe!set2,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> >::`scalar deleting destructor'() + 0x2b bytes C++

bowExample.exe!boost::checked_delete,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> > >(set2,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> > * x) Line 34 + 0x2b bytes C++

bowExample.exe!boost::scoped_ptr,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> > >::~scoped_ptr,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> > >() Line 80 + 0xb bytes C++

bowExample.exe!bowTest(CBoWIMUParams & BOWIMUPARAMS) Line 192 + 0xf bytes C++

bowExample.exe!main(int argc, char * * argv) Line 225 + 0xc bytes C++

bowExample.exe!__tmainCRTStartup() Line 555 + 0x19 bytes C

bowExample.exe!mainCRTStartup() Line 371 C

kernel32.dll!7700339a()

ntdll.dll!77e79ef2()

ntdll.dll!77e79ec5()

这是加载符号后的调用堆栈

ntdll.dll!_ZwRaiseException@12() + 0x12 bytes

ntdll.dll!_ZwRaiseException@12() + 0x12 bytes

msvcr100d.dll!__getptd_noexit() + 0xae bytes

bowExample.exe!std::_Tree<:_tset_traits>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> >::clear() Line 1415 C++

bowExample.exe!std::_Tree<:_tset_traits>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> >::erase(std::_Tree_const_iterator<:_tree_val>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> > > _First, std::_Tree_const_iterator<:_tree_val>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> > > _Last) Line 1383 C++

bowExample.exe!std::_Tree<:_tset_traits>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> >::_Tidy() Line 1866 + 0x5d bytes C++

bowExample.exe!std::_Tree<:_tset_traits>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> >::~_Tree<:_tset_traits>,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128>,0> >() Line 792 C++

bowExample.exe!std::set,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> >::~set,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> >() + 0x2b bytes C++

bowExample.exe!set2,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> >::~set2,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> >() + 0x63 bytes C++

bowExample.exe!set2,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> >::`scalar deleting destructor'() + 0x2b bytes C++

bowExample.exe!boost::checked_delete,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> > >(set2,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> > * x) Line 34 + 0x2b bytes C++

bowExample.exe!boost::scoped_ptr,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> > >::~scoped_ptr,CBoWMatch::MatchSort,CIndividualPool_NoFree_Allocator,128> > >() Line 80 + 0xb bytes C++

bowExample.exe!bowTest(CBoWIMUParams & BOWIMUPARAMS) Line 193 + 0xf bytes C++

bowExample.exe!main(int argc, char * * argv) Line 216 + 0xc bytes C++

bowExample.exe!__tmainCRTStartup() Line 555 + 0x19 bytes C

bowExample.exe!mainCRTStartup() Line 371 C

kernel32.dll!@BaseThreadInitThunk@12() + 0x12 bytes

ntdll.dll!___RtlUserThreadStart@8() + 0x27 bytes

ntdll.dll!__RtlUserThreadStart@8() + 0x1b bytes

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值