0
我正在Windows 8手機上移植我的遊戲。它已經在iOS和Android上運行。 當我嘗試從plist加載圖像時發生崩潰。無法加載pList中的圖片
WickedChicks.exe中0x69B76451(libcocos2d.dll)未處理的異常:0xC0000005:訪問衝突讀取位置0x00000018。
我的代碼很簡單:
CCSpriteFrameCache :: sharedSpriteFrameCache() - > addSpriteFramesWithFile( 「CommonObjects.plist」);
我的CommonObjects.plist和它的png出現在資源文件夾&在iOS和Android上工作正常。
其在
void CCSpriteFrameCache::addSpriteFramesWithFile(const char *pszPlist)
方法給空了
CCDictionary *dict = CCDictionary::createWithContentsOfFileThreadSafe(fullPath.c_str());
。
由於提前