now,I use cocos2d-x2.2 to debug. A bug take place when I trun off the scene . I only add a (.tmx file) in CCLayer ;
this is the bug :
Windows has triggered a breakpoint in NuWu.exe.
This may be due to a corruption of the heap, which indicates a bug in NuWu.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while NuWu.exe has focus.
The output window may have more diagnostic information.