game shuts when animation runs on windows phone 8

im running the animation using this code however the game shuts when this animation runs and displays no errors.

CCSpriteFrameCache **cache = CCSpriteFrameCache::sharedSpriteFrameCache;
cache~~>addSpriteFramesWithFile;

CCSpriteBatchNode *spritesheet = CCSpriteBatchNode::create;
this~~>addChild;
CCArray**kidframes = new CCArray;

for(int i=1; i<=2; i++){
char name[32] = {0};
sprintf(name, “kid%d.png”,i);
CCSpriteFrame frame = cache~~>spriteFrameByName;
kidframes~~>addObject;
}
CCAnimation
runanim = CCAnimation::createWithSpriteFrames(kidframes, 0.1);
CCSprite kiddo = CCSprite::createWithSpriteFrameName;
kiddo~~>setPositionX;
kiddo~~>setPositionY;
kiddo~~>setScaleX;
kiddo~~>setScaleY;
CCAction
action = CCRepeatForever::create(CCAnimate::create(runanim));
kiddo~~>runAction;
spritesheet~~>addChild(kiddo);