@s553841071 写道:
cocos2d-x c++ lua 游戏退出的时候有内存泄漏。
WARNING: Visual Leak Detector detected memory leaks!
---------- Block 7127 at 0x0224B940: 8 bytes ----------
Leak Hash: 0xFA092CC7, Count: 1, Total 8 bytes
Call Stack (TID 7204):
MSVCR120D.dll!operator new()
d:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory0 (848): Game.exe!std::WrapallocContainerproxy> >::allocate()
d:\program files (x86)\microsoft visual studio 12.0\vc\include\xtree (819): Game.exe!std::Treealloc<0,std::Treebase_types,std::allocator > > >,std::allocator d:\program files (x86)\microsoft visual studio 12.0\vc\include\xtree (794): Game.exe!std::Treealloc<0,std::Treebase_types,std::allocator > > >,std::allocator d:\program files (x86)\microsoft visual studio 12.0\vc\include\xtree (890): Game.exe!std::Treebuy,std::allocator > > >,std::allocator d:\program files (x86)\microsoft visual studio 12.0\vc\include\xtree (1003): Game.exe!std::Treecomp<0,std::Tmaptraits,std::allocator > >,std::less,std::allocator d:\program files (x86)\microsoft visual studio 12.0\vc\include\xtree (1067): Game.exe!std::TreeTmap_traits,std::allocator > >,std::less,std::allocator d:\program files (x86)\microsoft visual studio 12.0\vc\include\map (96): Game.exe!std::map,std::allocator > >,std::less,std::allocator f:\cocos2d\game-brnn\cocos2d\cocos\scripting\lua-bindings\manual\cocos2d\luascripthandlermgr.cpp (123): Game.exe!cocos2d::ScriptHandlerMgr::ScriptHandlerMgr()
f:\cocos2d\game-brnn\cocos2d\cocos\scripting\lua-bindings\manual\cocos2d\luascripthandlermgr.cpp (133): Game.exe!cocos2d::ScriptHandlerMgr::getInstance() + 0x27 bytes
f:\cocos2d\game-brnn\cocos2d\cocos\scripting\lua-bindings\manual\ccluaengine.cpp (284): Game.exe!cocos2d::LuaEngine::handleNodeEvent() + 0xD bytes
f:\cocos2d\game-brnn\cocos2d\cocos\scripting\lua-bindings\manual\ccluaengine.cpp (220): Game.exe!cocos2d::LuaEngine::sendEvent() + 0xF bytes
f:\cocos2d\game-brnn\cocos2d\cocos\base\ccscriptsupport.cpp (220): libcocos2d.dll!cocos2d::ScriptEngineManager::sendNodeEventToLua() + 0x13 bytes
f:\cocos2d\game-brnn\cocos2d\cocos\2d\ccnode.cpp (1306): libcocos2d.dll!cocos2d::Node::onEnter() + 0xB bytes
f:\cocos2d\game-brnn\cocos2d\cocos\2d\cccamera.cpp (385): libcocos2d.dll!cocos2d::onEnter()
f:\cocos2d\game-brnn\cocos2d\cocos\2d\ccnode.cpp (1297): libcocos2d.dll!cocos2d::Node::onEnter() + 0x16 bytes
f:\cocos2d\game-brnn\classes\gamescene.cpp (89): Game.exe!GameScene::onEnter() + 0xB bytes
f:\cocos2d\game-brnn\cocos2d\cocos\base\ccdirector.cpp (1120): libcocos2d.dll!cocos2d::Director::setNextScene() + 0x1E bytes
f:\cocos2d\game-brnn\cocos2d\cocos\base\ccdirector.cpp (287): libcocos2d.dll!cocos2d::Director::drawScene()
f:\cocos2d\game-brnn\cocos2d\cocos\base\ccdirector.cpp (1397): libcocos2d.dll!cocos2d::DisplayLinkDirector::mainLoop()
f:\cocos2d\game-brnn\cocos2d\cocos\platform\win32\ccapplication-win32.cpp (93): libcocos2d.dll!cocos2d::Application::run() + 0xF bytes
f:\cocos2d\game-brnn\proj.win32\main.cpp (39): Game.exe!wWinMain() + 0x19 bytes
f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c (466): Game.exe!wWinMainCRTStartup()
kernel32.dll!BaseThreadInitThunk() + 0x12 bytes
ntdll.dll!RtlInitializeExceptionChain() + 0x63 bytes
ntdll.dll!RtlInitializeExceptionChain() + 0x36 bytes
Data:
1C 14 5B 07 00 00 00 00 ..[..... ........
帖子: 4
参与者: 1