Hi,
I am using THttpClient from inside a TThread object for downloading
several files sequentially. At present the implementation is
synchronous, setting MultiThreaded = true then calling Get().
I noticed a high CPU load while downloading, but I am not sure whether
this comes from the download
Fastream Technologies schrieb:
- Original Message -
From: Arno Garrels [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, May 17, 2006 5:03 PM
Subject: Re: [twsocket] thread message loop question
: Fastream Technologies wrote:
:
: I suggest you to
Arno Garrels schrieb:
Are there any AV scanners running in the background?
I saw a lot of troubles with Norton AV.
I don't think that's the problem here, because if I download the files
with Firefox, it runs smoothly.
Note, that CPU load depends also on your line speed. If you are testing
Arno Garrels schrieb:
Carsten Muencheberg wrote:
Answering my own question:
void __fastcall TForm1::HttpCli1DocData(TObject *Sender, Pointer Buffer,
int Len)
{
Sleep(1);
}
//
---
Did the trick, CPU is at 0% now
Arno Garrels wrote:
Fastream Technologies wrote:
I think he is not assigning his own message oump at all--using the default
one with PeekMessage.
[...]
However, if he has both property MultiThreaded set to TRUE as
well as calls (sync) method Get then it may result in plenty
of CPU usage: