This is my code:
mTexture = CCTextureCache::sharedTextureCache()->addImage(“TestTexture.png”);
CCSprite *netCastSprite = CCSprite::spriteWithTexture(mTexture);
It’s all right in iPhone simulator4.2,but crash in iPad device 。 I find it crash at “texture->retain()” of CCSprite::setTexture function。
Briefly. use CCSprite *netCastSprite = CCSprite::SpriteWithFile(“TestTexture.png”) instead, this image will also be cached in CCTextureCache.
I will test your code soon