Projects > cpp > Issues > Bug #3679

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

ActionManagerEx::playActionByName(const char* jsonName,const char* actionName, CallFunc* func) crash when execute callback

Bug #3679 [Closed]
26_terry 2014-01-13 11:54 . Updated over 10 years ago

In the callback there is only one line ‘log(“animation finished”);’, but when the animation finished and start execute the callback, app crash!

here is the related code:

void TestScene::onEnterTransitionDidFinish(){
Layer::onEnterTransitionDidFinish();
CallFunc * func = CallFunc::create(
bind(&TestScene::onAnimOpeningStop, this));
ActionManagerEx::getInstance()->playActionByName(“fileName”,“animName”,func);
}

void TestScene::onAnimOpeningStop(){
log(“animation finished”);
}

walzer@cocos2d-x.org 2014-10-08 02:49

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8308

Atom PDF

Status:Closed
Start date:2014-01-13
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:android
Target version:-