Hi,
I have a CCMenu that have many itens,
CCMenu* pMenu = CCMenu::menuWithItems(pCloseItem, pCloseItem1, pCloseItem2,startLabel, NULL);
One of them, simple call
CCDirector::sharedDirector()->replaceScene(GameScene::scene());
It works ok, but I try to add a CCParticleSystem in the same scene that I have the CCMenu, I use this code:
CCParticleSystem* m_emitter;
m_emitter = CCParticleFireworks::node();
//m_emitter->retain();
this->addChild(m_emitter, 10);
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage("stars.png") );
The effect show correctly, but when I try to change the scene, the game crash.
I have no idea of what is happening.