Projects > cpp > Issues > Bug #448

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

Create Issue on Github

CCCallFuncO crashes

Bug #448 [Closed]
walzer@cocos2d-x.org 2011-04-07 22:55 . Updated over 8 years ago

it’s reported on QQ by a developer. the code is

moveTo = CCSequence::actions(
                CCMoveTo::actionWithDuration(fDuration, CCPointMake(fInitX + fBgHalfWidth - fButtonHalfWidth - fAdjustX, fInitY - fAdjustY)),
                CCCallFuncO::actionWithTarget(this, callfuncO_selector(GTSwitchButton::moveOverCallback), sender), 
                NULL);

sButton->runAction(moveTo);

I suggest him to change CCCallFuncO to CCCallFuncN, it works ok.
I remember that, we haven’t test CCCallFuncO. Fix it, or remove it.

walzer@cocos2d-x.org 2011-04-07 22:56
  • Subject changed from CCCallFuncO creashes to CCCallFuncO crashes
zhangxm 2011-04-12 23:00
  • Status changed from New to In Progress
  • Assignee set to zhangxm
zhangxm 2011-04-12 23:03
  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:e156d2a61bef31b1689d28f9febaebc202f85515.

zhangxm 2011-04-18 23:08
  • Status changed from Resolved to Closed
walzer@cocos2d-x.org 2012-05-25 08:16
  • Project changed from cocos2d-x to cpp
  • Category deleted (5)
  • Target version deleted (cocos2d-0.99.5-x-0.8.3)
ionliga 2014-11-28 14:50

The optimization introduces a bug where the priority and Touch Mode will not get changed if the list is locked.
The most straight forward fix is to merge the pHandlersToAdd and pHandlersToRemove into a queue and process through all of them in the order they are received

Pokerstar88.com Agen Texas Poker dan Domino Online Indonesia Terpercaya | Agen Bola | Taruhan Bola | Agen Bola | Olb365.com Agen Judi Bola Online, Agen Judi Casino Online Indonesia Terpercaya | Jasa SEO | Agen Sbobet

Atom PDF

Status:Closed
Start date:2011-04-07
Priority:Normal
Due date:
Assignee:zhangxm
% Done:

100%

Category:-
Target version:-