我需要做到的是建立N个线程,线程数不固定的,每个线程都要建立一个idhttp,但是如果是在线程的execute中:procedure Thread1.Execute;
idhttp1:TidHttp;
begin
 idhttp1:=Tidhttp.create(nil); .............end;
这样的话那岂不是出现错误,我要的是N个idhttp,想到这里于是就用 :procedure Thread1.Execute;
begin
 idhttp1 = new Tidhttp; .............end;
可是程序到这还是出错,是否建立idhttp1这句:idhttp1 = new Tidhttp;用的不对?呵呵~~刚玩Delphi几天,请大家帮帮我,最好能给个代码看看。