本文介绍了C ++找到悬空指针删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!


我正在研究Blender的源代码并尝试做出贡献,主要是通过错误修复。现在我遇到了一个问题:由于悬空指针(值0xDDDDDDDD),我正在使用Visual Studio和Blender崩溃。现在我想找到它被删除或释放的地方。那有工具或解决方案吗?大多数工具似乎只搜索内存泄漏等等,那些找到悬空指针,通常不会搜索它被删除或释放的位置。

谢谢!

解决方案




Hello!

I am working on the source code of Blender and trying to contribute, mainly through bug fixes. Now I have a problem: I am using Visual Studio and Blender crashes because of a dangling pointer (value 0xDDDDDDDD). Now I want to find the place where it is deleted or freed. Are there tools or solutions for that? Most tools seem to only search for memory leaks and so on, those, which find dangling pointers, don''t usually search the location where it is deleted or freed.
Thanks!

EDIT: Sorry for the double post, when I asked the first one, it somehow disappeared for a while, I thought it didn''t work, asked this question again. Then the first question was visible again, but it seems like there is a problem with it, the sub site is wrong somehow.

解决方案




这篇关于C ++找到悬空指针删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 15:09