Cocos2d-x stack corruption detected: aborted

adb logcat错误 :堆栈错误,,或者访问过界。。。通常不太好调试;;

但是以下两种情况最最常见;

1、

char aa[10];
strcpy(aa,"abcdefghijk123457890");///明显错误

 

2、

char aa[6];
sprintf(aa,“the value is : %d”, 123);

尤其第二种情况比较隐藏。。。

posted @ 2014-04-08 10:41  滴水瓦  阅读(1382)  评论(0编辑  收藏  举报