I have write my own class that inherit CCSprite , then in my constructor function:
CCSprite *dockk = CCSprite::create(“Dock.png”);//this line is working perfectly，i can get infomations from the debugger which means this is not an empty pointer.
this->addChild(dockk);//but this line will break。
program will break at CCSprite.cpp CCAssert(pChildSprite->getTexture()~~>getName == m_pobTextureAtlas~~>getTexture()->getName(), “”); line（655 line）
I dont know what i miss.
plz help me on this