作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一段代码在 VS2008,C++ 中以 Debug模式运行。
问题是,当我逐行调试代码时,在代码的一个非常奇怪的地方,它崩溃并说:
debug assertion faild. Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
for(int e=0; e<mesh->edges.size(); e++)
{
if(mesh->edges[e].valid && mesh->edges[e].v[0]>=0 && mesh->edges[e].v[1]>=0 &&
mesh->points[mesh->edges[e].v[0]].writable && mesh->points[mesh->edges[e].v[1]].writable)
{
//update v_hat and its corresponding error
DecEdge Current = DecEdge(e);
pair<Point, float> ppf = computeVhat(e);
Current.v_hat = ppf.first;
Current.error = ppf.second;
edgeSoup.push(Current);
mesh->edges[e].needsUpdate=false;
}
}
最佳答案
根据我的经验,在右括号上发生的崩溃意味着崩溃发生在当 block 超出范围时运行的析构函数中。我会检查 DecEdge
的析构函数中发生了什么和 Point
.
关于debugging - 花括号 : debug assertion faild 上的崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2954472/
我有一段代码在 VS2008,C++ 中以 Debug模式运行。 问题是,当我逐行调试代码时,在代码的一个非常奇怪的地方,它崩溃并说: debug assertion faild. Expressio
所以我在我的电脑硬盘上安装了鹦鹉操作系统, 之后我更新了漏洞系统并尝试运行 MSFCONSOLE . 执行该命令后,我收到此错误: Bundler failed to load and return
我开始学习如何使用 OpenCV 和面部检测。我正在关注以下代码示例:https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutori
我是一名优秀的程序员,十分优秀!