[Urgent] BMFont Crashes when setting string

hi, this is a situation im stucked for almost 1 mouth! when i want to create a bmfont in android ( in win32 every thig goes right) my app hang for 2-3 sec and then crashes ! after digging in i found out setting m_sString cause this crash ! even when i set it manually in it class with spaces like m_sString=" " it crash again ! i search lot but found nothing that could cause this error! pleas help!

void CCLabelBMFont::setString(const char **newString)
{
*android_log_print;
m_sString.clear;
//char s[1000];
//sprintf;
//*android_log_print;
//std::string str;
*android_log_print;
m_sString= " " ;// line cause crash
>*android_log_print;
android_log_print;
if != 0)
{
>android_log_print;
CCObject
child;
*android_log_print;
CCARRAY_FOREACH
{
>*android_log_print(ANDROID_LOG_DEBUG, “CCLabelBMFont”, “if3”);
CCNode* pNode = (CCNode*) child;
*android_log_print;
if
{
>*android_log_print(ANDROID_LOG_DEBUG, “CCLabelBMFont”, “if9”);
pNode->setIsVisible(false);
}
}
}
*android_log_print;
this->createFontChars;
>*android_log_print(ANDROID_LOG_DEBUG, “CCLabelBMFont”, “ac”);
}

probably the string you want to set is not in the list of the font you made by BMFont, check it first!

it’s not the case, the same code works in win32, also i’m changing my utf-8 string to ASCII !

i found the problom! it seems in crystax you should change

CCLabelBMFont()
: m_cOpacity(0)
, m_bIsOpacityModifyRGB(false)
, m_sString(“”)
to
CCLabelBMFont()
: m_cOpacity(0)
, m_bIsOpacityModifyRGB(false)
, m_sString(" ")
(add space to m_sString!) if not m_sString will not be initialize