W
wjl_my
Unregistered / Unconfirmed
GUEST, unregistred user!
var
mstream:TMemoryStream;
strdata:string;
begin
nmudp1.ReportLevel:=Status_basic;
nmudp1.RemoteHost:='127.0.0.1'; //'192.168.188.113';
strdata:=edit1.text;
mstream:=TMemoryStream.Create;
try
mstream.write(strdata[1],length(strdata));
nmudp1.SendStream(mstream);
finally
mstream.Free;
end;
end;
在运行到nmudp1.sendstream(mstream)时,出现如下错误:
list index out of bounds(0)
请网络编程高手们帮助,我才学网络编程没多久,好多问题对你们来说可能比较可笑,
不要笑我啊
mstream:TMemoryStream;
strdata:string;
begin
nmudp1.ReportLevel:=Status_basic;
nmudp1.RemoteHost:='127.0.0.1'; //'192.168.188.113';
strdata:=edit1.text;
mstream:=TMemoryStream.Create;
try
mstream.write(strdata[1],length(strdata));
nmudp1.SendStream(mstream);
finally
mstream.Free;
end;
end;
在运行到nmudp1.sendstream(mstream)时,出现如下错误:
list index out of bounds(0)
请网络编程高手们帮助,我才学网络编程没多久,好多问题对你们来说可能比较可笑,
不要笑我啊