据我所知,terminate()
是在异常处理出现问题时调用的(通常它只是未被捕获)。 我得到的只是一个错误行terminate called recursively
。终止递归调用
Google上搜寻了一段时间后,我发现了很多的
terminate called after throwing an instance of ... terminate called recursively
例子,但它不是我的情况。因为我没有关于异常类型的提示,所以我想知道这是什么terminate called recursively
本身。
对不起,我不能提供代码,所以任何猜测都会有帮助。 我在Ubuntu 11.04下用g ++ 4.5.2编译。
非常感谢, Alex。
没有代码,我们什么也没说。可能是你有终止处理程序,写道“递归终止”。 – ForEveR
谢谢@ForEveR。不,我没有使用set_terminate。 – Shamdor
尝试调试,使用gdb和core。 – ForEveR