CCFileUtils::getFileData crashes

CCFileUtils::getFileData crashes
0.0 0



I want to read a XML-file using CCFileUtils::getFileData. my Code looks something like this:

unsigned long* pSize;
unsigned char* xml = CCFileUtils::getFileData(“test”, “r”, pSize);
CCLog(“%s”, xml);

delete []xml;
xml = NULL;

Everything works fine. I also get the expectet outpout from CCLog, but after that the App crashes with “Fatal Signal 11”. What could be the problem?


No one any idea? I tried it with the newest cocos2dx Version (2.0.2) with differnt Android Smartphones. I actually made a completely new android project and only insertet the code I postet above into the init() method and still have the same Problem.