, October 05, 2006 10:05 PM
Subject: [twsocket] How to use THttpCli with threads?
Hi!
I want use THttpCli within TTread, but when I close application it
eception with AV at address 0
Code follow
constructor TBaseThread.Create;
begin
inherited Create(False);
FreeOnTerminate := True
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
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
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
-
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
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?
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.
- 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
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
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
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
Hi!
I want use THttpCli within TTread, but when I close application it eception
with AV at address 0
Code follow
constructor TBaseThread.Create;
begin
inherited Create(False);
FreeOnTerminate := True;
HttpClient := THttpCli.Create(nil);
{
HttpClient.Agent := 'Anatoly
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,
13 matches
Mail list logo