Assert Error :ccArray.cpp function:ccArrayAppendObject line:120
this is the error when i am trying to execute a frame animation using this code :
`CCArray *frames= CCArray::create();
for(int i=0 ; i<=21 ; i++)
{
CCString *frame=CCString::createWithFormat("mypong%04d.png",i);
frames->addObject(CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName(frame->getCString()));
}
sprite->runAction(CCAnimate::create(CCAnimation::create(frames,.01)));
}`
its under TouchesBegan method.Anyone knows what i am doing wrong here ??
If i comment this code out everything works perfect…
NOTE: i am on win7 64-bit ,cocos2dx 2.0.1, ndk r8b