Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Francois Piette
What I'm doing wrong? Your HTTP component runs in the main thread since you created in the context of the main thread (TThread constructor execute in the context of the calling thread, not in the context of the created thread). Create you HTTP component instance from the thread's Execute method

Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Arno Garrels
Hello, With your code below THttpCli's events are not executed in TBaseThread. Create and Destroy THttpCli in Execute procedure of the thread. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Anatoly Podgoretsky wrote: Hi! I want use THttpCli within TTread, but

Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Anatoly Podgoretsky
PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, October 06, 2006 10:11 AM Subject: Re: [twsocket] How to use THttpCli with threads? What I'm doing wrong? Your HTTP component runs in the main thread since you created in the context of the main thread (TThread constructor

Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Arno Garrels
of thread? With best regards, Anatoly Podgoretsky - Original Message - From: Francois Piette [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, October 06, 2006 10:11 AM Subject: Re: [twsocket] How to use THttpCli with threads? What I'm doing wrong

Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Francois Piette
- From: Anatoly Podgoretsky [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, October 06, 2006 9:46 AM Subject: Re: [twsocket] How to use THttpCli with threads? Hi Arno and Francois, I understood my my mistake. I think that TBaseThread.Create is thread context

Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Anatoly Podgoretsky
I ask before about 1. What I set to property Multitreaded? I don't understand it. I did? I believe I must. and about 3. In all examples I see that I must access HttpCli data with Memory Stream (ms.LoadFromStream(StringList) - is another method to access received data without a stream?

Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Abdullah AlQasim
I think the best way Francois provide us a full multi-threading example for HttpCli or any member in the list already done sample for that. Anatoly Podgoretsky wrote: I ask before about 1. What I set to property Multitreaded? I don't understand it. I did? I believe I must. and about 3.

Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Frans van Daalen
- Original Message - From: Abdullah AlQasim [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, October 06, 2006 3:51 PM Subject: Re: [twsocket] How to use THttpCli with threads? I think the best way Francois provide us a full multi-threading example

Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Anatoly Podgoretsky
Hi Frans, Examples and third party demos are very high, really I don't catch all of them. :-) But I looked its example and see that my current code very similar. With best regards, Anatoly Podgoretsky - Original Message - From: Frans van Daalen [EMAIL PROTECTED] I think the best way

Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Anatoly Podgoretsky
Thanks Abdullah, Now I look HttpThr example With best regards, Anatoly Podgoretsky - Original Message - From: Abdullah AlQasim [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, October 06, 2006 4:51 PM Subject: Re: [twsocket] How to use THttpCli with threads

Re: [twsocket] How to use THttpCli with threads?

2006-10-06 Thread Francois Piette
1. What I set to property Multitreaded? I don't understand it. This property tells the component it is working within a secondary thread. See the source code and you'll see it use that property to slightly modify the way it get and handle messages. 3. In all examples I see that I must access

Re: [twsocket] How to use THttpCli with threads?

2006-10-05 Thread Anatoly Podgoretsky
Hi all, I carefully reread a FAQ and see other scenario. Divide process into two pieces, download information from WEB site into main thread (ClientConnection) and run thread after data received only for database work. My application is NNTP server with downloading information from one site,