unsigned char *pSendBuf = new unsigned char[len]开始没给指针赋NULL,如果指针分配失败,pSendBuf是为NULL吗,还是野指针
分配失败会抛异常。pSendBuf 指针为NULL。