标签:
最近在做一个小游戏,遇到一个问题是程序运行正常,但是每次关闭程序时就会提示:Assertion failed!
然后把程序检查了一遍,没问题啊!实在找不出哪里有问题!再看提示在CCNode.cpp 189行,进去看看,
CCASSERT(!_running, "Node still marked as running on node destruction! Was base class onExit() called in derived class onExit() implementations?");
靠终于知道哪里出问题了,原来在onExit()中敲代码时没注意打错了,(⊙﹏⊙)b!!!
void HelloWorld::onExit()
{
Layer::init();
......
}
标签:
原文地址:http://blog.csdn.net/yj_cs/article/details/46424071