各位朋友好!
有谁使用COCOSTUDIO开发过实际的游戏?在我现在使用的V2.1.4e中,我发现使用语句:
CCDirector::sharedDirector()->end();
无法正常退出系统--准确地说,需要等待很长时间漏洞输出结束(需要好多分钟,漏洞量很大)后才能结束。
根据CALL STACK,我发现有:
WARNING: Visual Leak Detector detected memory leaks!
---------- Block 10 at 0x01869870: 8 bytes ----------
Call Stack:
c:program filesmicrosoft visual studio 10.0vcincludexmemory (36): zxzFreeCellWin32.win32.exe!std::_Allocatestd::_Container_proxy + 0x15 bytes
c:program filesmicrosoft visual studio 10.0vcincludexmemory (187): zxzFreeCellWin32.win32.exe!std::allocatorstd::_Container_proxy::allocate + 0xB bytes
c:program filesmicrosoft visual studio 10.0vcincludexstring (469): zxzFreeCellWin32.win32.exe!std::_String_val<char,std::allocator >::_String_val<char,std::allocator > + 0xA bytes
c:program filesmicrosoft visual studio 10.0vcincludexstring (592): zxzFreeCellWin32.win32.exe!std::basic_string<char,std::char_traits,std::allocator >::basic_string<char,std::char_traits,std::allocator > + 0x58 bytes
e:download2010cocostudio_0.2.4.1cocos2dx_v2.1.4eextensionscocoguilibsystemccsreader.cpp (40): zxzFreeCellWin32.win32.exe!cocos2d::extension::CCSReader::CCSReader
e:download2010cocostudio_0.2.4.1cocos2dx_v2.1.4eextensionscocoguilibsystemccsreader.cpp (51): zxzFreeCellWin32.win32.exe!cocos2d::extension::CCSReader::shareReader + 0x2B bytes
e:download2010cocostudio_0.2.4.1cocos2dx_v2.1.4eextensionscocoguilibsystemuihelper.cpp (78): zxzFreeCellWin32.win32.exe!cocos2d::extension::UIHelper::createWidgetFromJsonFile + 0x9 bytes
e:download2010cocostudio_0.2.4.1cocos2dx_v2.1.4ezxzfreecellwin32classesfirstinterfacefirstinterface.cpp (99): zxzFreeCellWin32.win32.exe!FirstInterface::runThisScene + 0x11 bytes
…(其他省略)
根据上面输出,我估计是系统的createWidgetFromJsonFile方法中可能存在问题?特别求教各位了。