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”);
}