我刚刚更新到狮子,现在我的应用程序崩溃,在旧版本中工作正常。它在没有日志的memset函数上崩溃。得到崩溃om内存集更新到狮子和xCode
unsigned char *theValue;
add(theValue, someotherValues);
我已经过了theValue参考作用
add(unsigned char *inValue, some other perameter) {
memset(inValue,0,sizeOf(inValue)); // **here it is crashing**
}
什么'theValue'点?而且,即使它指向某种合理的东西,代码也没有意义;你试图设置指针'theValue'指向的字符,但是使用指针本身的大小来确定要设置多少内存。 –
我编辑过的问题。 – iOSPawan