CCLabelBMFont on WP8

CCLabelBMFont on WP8
0.0 0


Hi, there is a problem when you run the application on WP8, error:

Unhandled exception at 0x6C5E2837 (libcocos2d.dll) in runner.exe: 0xC0000005: Access violation reading location 0xFEEEFEF2.

CCLabelBMFont *scoreLabel = CCLabelBMFont::create(“text”,“fonts/font.fnt”);
win32 to run without errors.

font.fnt and font.png is in the folder:

If the debugger view, the drop function in
CCObject* CCDictionary::objectForKey(const std::string& key){ if (m_eDictType == kCCDictUnknown) return NULL; ... }

key = “fonts/font.fnt”

P.S. I am sorry if this problem has already been discussed on the forum.

sdgh.JPG (26.4 KB)


It seems, VS could not recognize the type of file font.fnt and it is not added into the build however it shows in the solution explorer.
You can fix this issue by following below steps:

1.Right click on font.fnt
2.Got to Properties
3.Set content field to YES in the dialog


Bunty Nara, thx