how make object after init() method calls

Hi, I’m Greire.

During game play, when i create a new unit object, an error occurs.
The unit class that inherits CCSprite.

pre-positioned unit objects in init() method are move to live without the error.
However, after init method call, i can’t make new unit object anymore.

Because of this problem has struggled for three days and three nights.

Please, Please help me.

ps. sorry about bad English.

unit~~>initWithFile;
this ok but
unit~~>initWithSpriteBatchNode(mybatchnode);
unit->initWithTexture(mybatchnode->getTexture());
these error

i think using pre-loaded image are make error.

why is that?

mybatchnode->retain();

lol

mybatchnode->retain();

lol