今天在尝试移植一个工具的时候,先是spriteBatch = CCSpriteBatchNode::batchNodeWithTexture(texture);
而后 spriteBatch->addChild(pSprite);
而后 pSprite = CCSprite::spriteWithBatchNode(spriteBatch,rc5);
如图片箭头所示位置,若那句断言没有注掉则运行时程序断在那里,若注释掉后程序则能够正常运行,不知道是不是会有内存泄露问题?????? 退出模拟器时不死机,没有上真机(木有)。
小弟是cocos2d-X初学者,求解。。。。
再就是怎样看有没有内存泄露问题,小弟是做Brew的开发,Brew模拟器自带了内存泄露提示(会提示泄露类型),不知咱们cocos2d-X有没有这种机制。望大侠们指导一二。
都三天了,木人给回答…
你??把?句?掉??吧:
先 pSprite = CCSprite::spriteWithBatchNode(spriteBatch,rc5);
而后 spriteBatch->addChild(pSprite);
你??把?句?掉??吧:
先 pSprite = CCSprite::spriteWithBatchNode(spriteBatch,rc5);
而后 spriteBatch->addChild(pSprite);