any idea, why this code crash?


#1

this line of code makes my app crash.
I didn’t find why…

any idea?

CCArray *tmpArr = CCArray::create(CCString::createWithFormat("%s", "1st:0"),
                                                        CCString::createWithFormat("%s", "2nd:0"),
                                                        CCString::createWithFormat("%s", "3rd:0"));

#2

Parameter lists for vararg functions must be NULL-terminated.