本帖最后由 cankoo 于 2011-08-22 19:06:42 编辑

解决方案 »

  1.   

    类似于这样子,稍微改下
    var sz:integer;
    len:integer;
    s:string;
    beginAContext.Connection.IOHandler.CheckForDisconnect(True, True);
    sz := AContext.Connection.IOHandler.InputBuffer.Size;
    if sz>0 then
    begin
    len:=AContext.Connection.IOHandler.ReadInteger;
    s:=AContext.Connection.IOHandler.ReadString(len);
    EditServerText.Text:=s;
    end;
    end;
      

  2.   

    帮楼上的顶一下,确实都跑IOHandler这里了
      

  3.   

    String的,有没有Binary,二进制的。
      

  4.   

    ReadBytes,ReadByte,ReadChar,ReadLn很多
      

  5.   

    确实是改到IOHandler里去了。哎,俺也曾经为Indy升级所带来的麻烦头疼,很郁闷。作为一个基本库,不要这样改来改去,改动那么大,好不!