Re: [twsocket] problem with httpcli to download the html from a specific website

2011-07-01 Thread MCastro
Hey guys, I got no answer/help from the list but another friend help me to fix it and I want to share the solution. == Dear Francois Piette, I need to accept cookies, and my old code that I got from your forum was: (my old code) with HttpC

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Éric Fleming Bonilha
Arno I use multiple threads to read the data from sockets, I actually have a thread pool that process data. This is my current code for OnDataAvailable from sockets: procedure TTCPSocketThread.HandleOnSocketDataAvailable(Sender: TObject; ErrCode: Word); begin // We can´t proceed on errors

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Arno Garrels
Arno Garrels wrote: > Éric Fleming Bonilha wrote: >> I know this is by design, but I believe that is why you have added >> wsoNoReceiveLoop so we don´t have to receive data in >> OnDataAvailable... >> >> By reading the socket using OnDataAvailable event I reached a >> bottleneck, my software wasn´

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Arno Garrels
Éric Fleming Bonilha wrote: > I know this is by design, but I believe that is why you have added > wsoNoReceiveLoop so we don´t have to receive data in > OnDataAvailable... > > By reading the socket using OnDataAvailable event I reached a > bottleneck, my software wasn´t being able to process ove

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Éric Fleming Bonilha
I know this is by design, but I believe that is why you have added wsoNoReceiveLoop so we don´t have to receive data in OnDataAvailable... By reading the socket using OnDataAvailable event I reached a bottleneck, my software wasn´t being able to process over 150mbits of incomming data because

Re: [twsocket] Memory leak in ICS Client socket

2011-07-01 Thread daniel cc
Thanks :) I will check it out. -daniel -Original Message- From: Francois PIETTE Sent: Friday, July 01, 2011 11:47 AM To: ICS support mailing Subject: Re: [twsocket] Memory leak in ICS Client socket I am using TSSLWSocket and I would like to know why I get memory leak error while usin

Re: [twsocket] Memory leak in ICS Client socket

2011-07-01 Thread Wilfried Mestdagh
Hi > RecStream := TMemoryStream.Create; If you have a memory leak in this code fragment then you probably forgot to free the stream. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be -- To unsubscribe or change your settings for TWSocket maili

Re: [twsocket] Showstopped bug in ICS

2011-07-01 Thread Wilfried Mestdagh
Hi, > it is expecting that my > event handler DO receive the data (But it doesn´t) and then, it locks > up on a loop! You have to receive the available data in the OnDataAvailable event handler. This is by design. If you want to process the data in another thread then the most obvious is that you

Re: [twsocket] Memory leak in ICS Client socket

2011-07-01 Thread Francois PIETTE
I am using TSSLWSocket and I would like to know why I get memory leak error while using the following at the “OnFormCreate”, RecStream := TMemoryStream.Create; Any ideas about what am I doin wrong? At first, this is not related to ICS: If you create a memory stream or any other object, then

[twsocket] Memory leak in ICS Client socket

2011-07-01 Thread daniel cc
Hi, I am using TSSLWSocket and I would like to know why I get memory leak error while using the following at the “OnFormCreate”, RecStream := TMemoryStream.Create; Any ideas about what am I doin wrong? thanks -- To unsubscribe or change your settings for TWSocket mailing list please goto http:/