> Any ideas how to make it on TObjectList so it wouldnt crash?
What about OwnObject property ?
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: "Ann" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Sunday, December 18, 2005 12:59 PM
Subject: Re: [twsocket][THT
Wiadomość Oryginalna
Od: Francois PIETTE <[EMAIL PROTECTED]>
Do: ICS support mailing
Data: Sun, 18 Dec 2005 12:22:54 +0100
Temat: Re: [twsocket] [THTTPCLI] What am i doing wrong? ;-(
> > I've changed .CloseAsync to .Abort and nothing changed :-( Still
got
> > access violation. Access
> I've changed .CloseAsync to .Abort and nothing changed :-( Still got
> access violation. Access violation only occures if Timer2 is
> Enabled. Somewhere in this code (Even without calling abort):
>
>> > for i:=HTTPCliList.Count - 1 downto 0 do
>> > begin
>> > todestroy:=THTTPCLI(HTTPCLILIST[i]);
I've changed .CloseAsync to .Abort and nothing changed :-( Still got
access violation. Access violation only occures if Timer2 is
Enabled. Somewhere in this code (Even without calling abort):
> > for i:=HTTPCliList.Count - 1 downto 0 do
> > begin
> > todestroy:=THTTPCLI(HTTPCLILIST[i]);
> > if
> Whats wrong? Why do i get access violation?
Probably because you use CloseAsync before destroying ?
In timer2 event handler, you could simply call Abort to make the component
stop the work in progress. Then you'll receive an OnRequestDone just like
the component had done the operation, checkin
> I noticed that if I'm not doing anything with RCVStream of HTTPCli
> in requests im getting Stream with data from previous requests that
> were made on the component. How do i avoid it? How to cleanup
> rcvStream?
This is not a component issue. It's just normal stream handling.
If you don't want
Line mode is one way to handle data. It applies only when data is
terminated by a given delimiter.
The other way is sending a data length somewhere. I understand that the
application you write must use that way of doing things.
It is not that difficult to implement but the component can't do it
Ok I changed strategy and creating components dynamicly for every
connection. Everything works great but still cant implement timeout.
.. why would i need timeout? Because at the end some Clients arent
destroyed because connections are still alive waiting for some data.
HTTPCliList is TObjectLis
I am not multithreading. Im using 20 components and GetAsync.
Wiadomość Oryginalna
Od: Arno Garrels <[EMAIL PROTECTED]>
Do: ICS support mailing
Data: Sat, 17 Dec 2005 22:26:47 +0100
Temat: Re: [twsocket] HttpCli.RcvStream - how to clear?
> Me wrote:
> > Would be great but sometimes im