CnPack Forum » CnVCL 组件包 » 程序池ProcessRequest问题,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


2010-7-14 16:22 juemimima
程序池ProcessRequest问题,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

procedure TfrmTest.ProcessRequest(Sender: TCnThreadPool;
  aDataObj: TCnTaskDataObject; aThread: TCnPoolingThread);
var
  d: TSendData;
  t: TSendThread;
begin
  d := TSendData(aDataObj);
  t := TSendThread(aThread);
  if (d = nil) or (t = nil) then
    Exit;
  Inc(ProcessCount);
  try
    t.idhttp1.Head(d.FMsg);//编译无错,但是跑到这一步就except了,请问怎么弄
    sReadln:=t.idhttp1.Response.RawHeaders.ValueFromIndex[1];
    t.Synchronize(Updatemmo1);   
  except
  end;
end;

页: [1]


Powered by Discuz! Archiver 5.0.0  © 2001-2006 Comsenz Inc.