Strange crash on Android (Win is ok)

Hi to all,

I have a strange crash on android while the win version is ok. I use the lastest version of cocos 2.1rc0!

my game crash executing this code (sigsegv error):

CCSize winSize = CCDirector::sharedDirector()>getWinSize;
fondale = CCSprite::create;
fondale
>setPosition(ccp(winSize.width/2, winSize.height/2 + 50));
fondale~~>setScaleX;
fondale~~>setOpacity(0);
addChild(fondale, 10);

CCLabelTTF lb = CCLabelTTF::create, 18, CCSize, kCCTextAlignmentCenter);
lb~~>setPosition.width/2,fondale~~>getContentSize.height/2-20));
fondale~~>addChild;
lb~~>setTag;
CCMenuItemLabel
pResume = CCMenuItemLabel::create(CCLabelTTF::create(“RESUME”, GAME~~>getNomeFont, 20), this, menu_selector);
pResume~~>setPosition(ccp(fondale~~>getContentSize.width/2,fondale~~>getContentSize().height/2-100));
CCMenu* pMenu = CCMenu::create(pResume, NULL);
fondale~~>addChild;
pMenu~~>setPosition(ccp(0,0));
pMenu~~>setTag;
CCFiniteTimeAction* actionFadeIn = CCFadeIn::create;
CCFiniteTimeAction* actionScale = CCScaleTo::create;
fondale~~>runAction( CCSequence::create(CCSpawn::create(actionScale, actionFadeIn), NULL) );

If I remove the animations all is ok (in Win and also in Android)
Do you have any idea?
Thank you very much

fix:
fondale~~>runAction, NULL) );
to:
fondale~~>runAction( CCSequence::create(CCSpawn::create(actionScale, actionFadeIn,NULL), NULL) );
have a try?

C Zhang wrote:

fix:
fondale~~>runAction, NULL) );
to:
fondale~~>runAction( CCSequence::create(CCSpawn::create(actionScale, actionFadeIn,NULL), NULL) );
have a try?

Thank you very very much.
Now it work well!
Out of curiosity: Why with Windows I did not receive the same error?

Thanks again!

Marco, you were just lucky, that’s all. This would have been a random fail/succeed problem if your Android had not caught it so quickly.

All parameter lists in cocos2d-x must be terminated with a NULL.