what is the memory management in cocos2dx 3.10?
问题 In class MainLayer init() function, I use a static vector to store the pointer of class block which extend Node. And then, after 5 seconds (I use a schedule to trigger run the function of runBlock()), I try to get data which are stored in static vector. However, the data that I got was wrong. From the debug, I understand it is the memory error. the data which I initialize looks like be deleted. I don't konw why the data was deleted. Please help me, Thanks! Here is my key code: MainLayer.cpp