> try to insert Sleep after SslHttpCli.Get: > while not terminated do > begin > SslHttpCli.URL := ... > SslHttpCli.Get; > Sleep(0/10/50/100/...); > end;
Loops are not necessary, ICS is event driven, when one page is received (OnRequestDone event) you use that to trigger the next GET, with a windows message. Sleep just slows everything down. ICS CPU usage will be in DoRequestSync which is called after every sync request looping the message loop. But the CPU usage often shown by tools is not real, it does not slow down other applications. And ICS will normally only be using a single thread, and most CPUs now have four CPUs so never more than 25%. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be