version: cocos2d-1.0.1-x-0.10.0
platform: win7
Add the following code to somewhere in HelloWorld::AppDelegate::applicationDidFinishLaunching:
CCLayer nn = CCLayer::node;
CCLabelTTFlb = CCLabelTTF::labelWithString(“HEHE”, “Arial”, 20);
lb~~>setPosition);
lb~~>setColor(ccc3(0xff,0,0));
nn~~>addChild;
pDirector~~>setNotificationNode(nn);
there’s no problem running the prograem, but crashes while exiting.
If we don’t add a child to NotificationNode, there’s nothing wrong.