再发一帖,此问题不懂,望高人指点?
现有一抄表程序:页面1中有数据接收解析函数IOCPSEVER11Execute(S, long: Integer),此函数调用是在终端有数据上送时就会被调用执行;另外,此函数中调用了同页面1下的函数dealBBBBBB(termid:string;buffer:Tbuffer);此函数对抄送的数据进行了简单处理,然后此函数又调用另外一个页面2的一函数DealBBBBBB(termid:string;buffer:Tbuffer;cont:Integer);
现在的疑问是当有数据连续不断的上传数据时,此时函数IOCPSEVER11Execute会被多次调用。如果出现这么个情况,当当前上送的数据还没解析完,此时又有数据上送,那会不会造成函数中的数据冲突?
IOCPSEVER11Execute(S, long: Integer)中给dealBBBBBB(termid:string;buffer:Tbuffer)传入的参数是其中的局部变量,dealBBBBBB(termid:string;buffer:Tbuffer)中给DealBBBBBB(termid:string;buffer:Tbuffer;cont:Integer);传入的参数是根据dealBBBBBB(termid:string;buffer:Tbuffer)的形参来得到的......
希望大家帮助一下