我们开发的产品之一是用C++和Symbian完成的诺基亚手机的手机应用程序,我们开始在一段时间内因用户44恐慌而"随机"崩溃.
我是Symbian环境的新手,所以我正在寻找工具和建议来帮助找到这个bug的根源.
我可以获得相当于"堆栈跟踪"吗?是否有通用的恐慌捕获代码可以让我对它有所了解?
来自http://www.symbian.com/developer/techlib/v9.1docs/doc_source/reference/N10352/UserPanics.html:
This panic is raised by the Free() and FreeZ() member functions of an RHeap. It is caused when the cell being freed overlaps the next cell on the free list (i.e. the first cell on the free list with an address higher than the one being freed).
这意味着,你的调用delete/delete [](它将使用无效指针调用Free()/ FreeZ()).当在Carbide下进行调试时,debuger应该在导致恐慌的线上中断,你应该能够看到无效的删除.