|
@@ -258,7 +258,7 @@ void canctrl::sharecanmsg(void *xpa, basecan_msg * pxmsg,int ncount,int nch)
|
|
|
|
|
|
int nsize = xmsg.ByteSize();
|
|
|
char * strdata = new char[xmsg.ByteSize()];
|
|
|
- if(xmsg.SerializePartialToArray(strdata,nsize))
|
|
|
+ if(xmsg.SerializeToArray(strdata,nsize))
|
|
|
{
|
|
|
iv::modulecomm::ModuleSendMsg(xpa,strdata,nsize);
|
|
|
}
|
|
@@ -267,4 +267,5 @@ void canctrl::sharecanmsg(void *xpa, basecan_msg * pxmsg,int ncount,int nch)
|
|
|
givlog->error("sharecanmsg serialize err");
|
|
|
gfault->SetFaultState(1, 0, "sharecanmsg serialize err");
|
|
|
}
|
|
|
+ delete strdata;
|
|
|
}
|