I had the same error. I’m not sure if this is the correct solution, but i added “exit(0);” to the default menuCloseCallback function, and the exception went away.
This next line of code is missing in the default new project in VS2012.
void HelloWorld::menuCloseCallback(CCObject* pSender)
// "close" menu item clicked
In the wiki it shows you the correct code as well: [[http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Menu_and_MenuItems]]
Maybe update the default project? I hope it helps…