Why this is wrong?

Why this is wrong?
0.0 0


In the HelloWorld::init(), I create a variable “sprite*” of CCSprite by CCSprite::spriteWithFile, but I don’t addChild to HelloWorld. Then I call sprite*->vist() at the HelloWorld::visit() , There always Error! Why ?


You overrided visit()? Why?


I want to call the render() of CCSprite by me! then I think the guess was the CCTexcture2D is release when I call the " sprite_->draw()". But I don’t konw why?


I know the answer! I need to “sprite_->retain()”,