Re: [twsocket] thread message loop question

2006-05-23 Thread Francois Piette
://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

Re: [twsocket] thread message loop question

2006-05-22 Thread Carsten Muencheberg
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.

Re: [twsocket] thread message loop question

2006-05-22 Thread Francois Piette
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

Re: [twsocket] thread message loop question

2006-05-22 Thread Fastream Technologies
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

Re: [twsocket] thread message loop question

2006-05-22 Thread Arno Garrels
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.

Re: [twsocket] thread message loop question

2006-05-22 Thread Arno Garrels
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

Re: [twsocket] thread message loop question

2006-05-22 Thread Carsten Muencheberg
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:

Re: [twsocket] thread message loop question

2006-05-22 Thread Arno Garrels
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

Re: [twsocket] thread message loop question

2006-05-18 Thread Carsten Muencheberg
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

Re: [twsocket] thread message loop question

2006-05-18 Thread Arno Garrels
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

[twsocket] thread message loop question

2006-05-17 Thread Carsten Muencheberg
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

Re: [twsocket] thread message loop question

2006-05-17 Thread Francois Piette
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

Re: [twsocket] thread message loop question

2006-05-17 Thread Fastream Technologies
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

Re: [twsocket] thread message loop question

2006-05-17 Thread Arno Garrels
/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

Re: [twsocket] thread message loop question

2006-05-17 Thread Fastream Technologies
- 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

Re: [twsocket] thread message loop question

2006-05-17 Thread Arno Garrels
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

Re: [twsocket] thread message loop question

2006-05-17 Thread Carsten Muencheberg
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

Re: [twsocket] thread message loop question

2006-05-17 Thread Fastream Technologies
@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

Re: [twsocket] thread message loop question

2006-05-17 Thread Arno Garrels
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

Re: [twsocket] thread message loop question

2006-05-17 Thread Arno Garrels
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