i think on CCDelayTime dt1 = CCDelayTime::create; and CCScaleTost2 = CCScaleTo::create(0.1f, 1)
>
if i remember it should be
CCDelayTime dt1 = CCDelayTime::create; and CCScaleTost2 = CCScaleTo::create(0.1f, 1.0f)
You mean use 1.0f instead of 1?
I dont think so. The compiler should cast 1 to float type.
However since this problem is really a wired one, I changed my code as below, and the trouble is not disappeared.
Then a found the program crash when executing CCArray::create.
So it seems that the problem is in the creation of actions. And even I sat a breakpoint before CCArray::create, And found the reference count is all right.
But the error still exist.
issue resolved.
I use CCArray::create() and then call addObject to each action. the problem is disappeared.
I think the problem may caused by the way of xcode compiler process the var_list. Since this is the only difference of two version of code, but I’m not sure.
Variable argument functions like this in Cocos2d-x tend to be null terminated.
>
In your example if you did:
> CCSequence *sq = CCSequence::create(dt1, sh1, st1, st2, NULL);
This would resolve your problems.