求助, CCAnimation在win32里出错

我的一段程序顺利编译,但是在windows里运行却发生错误,发现是CCAnimation *animation = CCAnimation::animationWithFrames(animFrames, 0.2f);这语句出错了,调试时进入到
void CCObject::retain(void)
{
CCAssert(m_uReference > 0, “reference count should greater than 0”);
++m_uReference;
}
中的++m_uReference;错误是Access violation writing location 。
源程序是
CCTexture2D *dragonTexture = CCTextureCache::sharedTextureCache()->addImage(“dragon.png”);
CCSpriteFrame *frame0, *frame1, *frame2, *frame3;
frame0 = CCSpriteFrame::frameWithTexture(dragonTexture, cocos2d::CCRectMake(0, 70, 130, 70));
frame1 = CCSpriteFrame::frameWithTexture(dragonTexture, cocos2d::CCRectMake(130, 70, 130, 70));
frame2 = CCSpriteFrame::frameWithTexture(dragonTexture, cocos2d::CCRectMake(260, 70, 130, 70));
frame3 = CCSpriteFrame::frameWithTexture(dragonTexture, cocos2d::CCRectMake(390, 70, 130, 70));
CCMutableArray<CCSpriteFrame *> *animFrames = new CCMutableArray<CCSpriteFrame *>(4);
animFrames->addObject(frame0);
animFrames->addObject(frame1);
animFrames->addObject(frame2);
animFrames->addObject(frame3);
CCAnimation *animation = CCAnimation::animationWithFrames(animFrames, 0.2f);
animFrames->release();
CCSprite *dragonSprite = CCSprite::spriteWithSpriteFrame(frame1);
dragonSprite->setPosition(ccp(100,100));
addChild(dragonSprite);
CCAnimate *animate = CCAnimate::actionWithAnimation(animation, false);
dragonSprite->runAction(CCRepeatForever::actionWithAction(animate));

这程序在Android模拟器上运行却没出错,求指教,谢谢

是m_uReference <= 0 么?吧animFrames->release()去了试试