://www.overbyte.be
- Original Message -
From: Carsten Muencheberg [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, May 22, 2006 7:12 PM
Subject: Re: [twsocket] thread message loop question
Arno Garrels wrote:
Fastream Technologies wrote:
I think he
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.
PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, May 22, 2006 11:07 AM
Subject: Re: [twsocket] thread message loop question
Arno Garrels schrieb:
Carsten Muencheberg wrote:
Answering my own question:
void __fastcall TForm1::HttpCli1DocData(TObject *Sender, Pointer
Subject: Re: [twsocket] thread message loop question
: FYI, I tested with a slow ISDN (64 kbit) connection today. 100% CPU
: without Sleep(1).
:
: Check your message loop. You _must_ call GetMessage, not PeekMessage.
: PeekMessage use 100% CPU (It returns immediately no matter
Fastream Technologies wrote:
I think he is not assigning his own message oump at all--using the default
one with PeekMessage.
Again, that is not TRUE:
{ Loop thru message processing until the WM_QUIT message is received}
{ This is intended for multithreaded application using TWSocket.
Carsten Muencheberg wrote:
yes, that was my original question in this thread. I am using the default.
Are you calling method Get or GetAsync?
If you call GetAsync please show us next line(s) of your code.
---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
--
To
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:
Carsten Muencheberg wrote:
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
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
Carsten Muencheberg wrote:
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.
Firefox does not use ICS!! Try turn off a
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
Subject: [twsocket] thread message loop question
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
and sync would not
use 100% CPU.
Regards,
SubZ
- Original Message -
From: Francois Piette [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, May 17, 2006 4:27 PM
Subject: Re: [twsocket] thread message loop question
: You have high CPU usage because you use
/overbyte/teamics.html
Regards,
SubZ
- Original Message -
From: Francois Piette [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Wednesday, May 17, 2006 4:27 PM
Subject: Re: [twsocket] thread message loop question
You have high CPU usage because you use sync
- 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 add a simple Sleep(1) to the message
Fastream Technologies wrote:
- 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 add
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
@elists.org
Sent: Wednesday, May 17, 2006 6:00 PM
Subject: Re: [twsocket] thread message loop question
: Fastream Technologies wrote:
: - Original Message -
: From: Arno Garrels [EMAIL PROTECTED]
: To: ICS support mailing twsocket@elists.org
: Sent: Wednesday, May 17, 2006 5:03 PM
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. :-)
Note, that
Are there any AV scanners running in the background?
I saw a lot of troubles with Norton AV.
---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
Arno Garrels wrote:
Carsten Muencheberg wrote:
Answering my own question:
void __fastcall
20 matches
Mail list logo