WARNING: Visual Leak Detector detected memory leaks!
---------- Block 5047 at 0x0062D220: 8 bytes ----------
Call Stack:
c:\program files (x86)\microsoft visual studio 11.0\vc\include\deque (900): HelloWorld.exe!std::_Deque_alloc<0,std::_Deque_base_types<cocos2d::AutoreleasePool *,std::allocator > >::_Alloc_proxy + 0xA bytes
c:\program files (x86)\microsoft visual studio 11.0\vc\include\deque (880): HelloWorld.exe!std::_Deque_alloc<0,std::_Deque_base_types<cocos2d::AutoreleasePool *,std::allocator > >::_Deque_alloc<0,std::_Deque_base_types<cocos2d::AutoreleasePool *,std::allocator > >
c:\program files (x86)\microsoft visual studio 11.0\vc\include\deque (957): HelloWorld.exe!std::deque<cocos2d::AutoreleasePool *,std::allocator >::deque<cocos2d::AutoreleasePool *,std::allocator >
e:\cocos2d-x-3.0rc1\helloworld\cocos2d\cocos\base\ccautoreleasepool.cpp (128): HelloWorld.exe!cocos2d::PoolManager::PoolManager
e:\cocos2d-x-3.0rc1\helloworld\cocos2d\cocos\base\ccautoreleasepool.cpp (112): HelloWorld.exe!cocos2d::PoolManager::getInstance + 0x22 bytes
e:\cocos2d-x-3.0rc1\helloworld\cocos2d\cocos\base\ccref.cpp (76): HelloWorld.exe!cocos2d::Ref::release + 0x5 bytes
e:\cocos2d-x-3.0rc1\helloworld\cocos2d\cocos\2d\platform\win32\ccapplication.cpp (109): HelloWorld.exe!cocos2d::Application::run
e:\cocos2d-x-3.0rc1\helloworld\proj.win32\main.cpp (17): HelloWorld.exe!wWinMain + 0xC bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (528): HelloWorld.exe!__tmainCRTStartup + 0x15 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (377): HelloWorld.exe!wWinMainCRTStartup
0x758B338A (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
0x774E9F72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
0x774E9F45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
Data:
68 50 F8 07 00 00 00 00 hP...... ........
```
cocos2d-x-3.0rc1 ,创建的helloworld在使用vld进行内存检测的时候,会有内存的泄漏。
this->_Myproxy = _Alproxy.allocate(1); 貌似大部分地方都指向allocate这个地方。
Cocos2dx3.0的也有。。求大神指导
解决了吗?
有些事单例类的释放后后再次调用,像这个类Configuration
还有 Value 这个类的内存有泄漏