string filePath = FileUtils::getInstance()->fullPathForFilename(fileName);
tinyxml2::XMLDocument *pDoc = new tinyxml2::XMLDocument();
tinyxml2::XMLError pError = pDoc->LoadFile(filePath.c_str());
log(“filePath == %s”,filePath.c_str());
tinyxml2::XMLElement *pRootElem = pDoc->RootElement();
log(“1”);
XMLElement *pDicElem = pRootElem->FirstChildElement();
log(“2”);
XMLElement *pKeyElem = pDicElem->FirstChildElement();
log(“3”);
XMLElement *pChildElem = pKeyElem->FirstChildElement();
log(“4”);
只打印出了1,报错为Fatal signal 11 (SIFSEGV) at 0x00000018 (code = 1),thread 5851(therad-927)
有大神知道嘛?切解答。