Re: [twsocket] Memory leaks...

2008-01-07 Thread zayin
AQTime? Thanks for the response, Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DZ-Jay Sent: Monday, January 07, 2008 10:53 AM To: ICS support mailing Subject: Re: [twsocket] Memory leaks... On Jan 7, 2008, at 11:45, zayin wrote: I located

Re: [twsocket] Memory leaks...

2008-01-07 Thread zayin
, January 07, 2008 11:10 AM To: 'ICS support mailing' Subject: RE: [twsocket] Memory leaks... Hi, The TWSocket is on a TDataModule. I am creating the TDataModule and yes I am freeing it. If I was not freeing the TDataModule it would be reported as a leak, along with the other items on the TDataModule. I

[twsocket] Memory leaks...

2008-01-05 Thread zayin
Hello, tcpPort: TWSocket; tcpPort.Connect AQTime is reporting a memory leak after I call connect. Has anyone run into this issue? D2007 SP3 XP Pro SP3 5.25 is in the WSocket file. Ciao, Mark -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Memory leaks...

2008-01-05 Thread Wilfried Mestdagh
Hello Mark, When you call connect the function returns immediatily, but the connection happens in background. So it is normal there is memory allocated. Needed memory is not nececarely a leak. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz

Re: [twsocket] Memory leaks

2006-10-10 Thread Paul
If the stream behaviour is what you need, I don't see any problem with that. What about memory allocation ? Paul PS: for all who's concerned about memory leaks : I've asked Pierre le Riche (author of FastMM) about memory consumption. The only thing you need to check is the virtual memory.

Re: [twsocket] Memory leaks

2006-10-10 Thread Francois Piette
If the stream behaviour is what you need, I don't see any problem with that. What about memory allocation ? It is better to keep the object created of course. But this doesn't change anything regarding to what the object optimize the memory it may have allocated. Contribute to the SSL

Re: [twsocket] Memory leaks

2006-10-09 Thread Francois Piette
If FastMM doesn't report any leak, then the increase probably result from memory fragmentation. I think FastMM solved the memory-fragmention-problem of the old Delphi memory manager. That's at least my expierence in applications where GetMem/FreeMem is called frequently (several thousands

Re: [twsocket] Memory leaks

2006-10-09 Thread Paul
I see no difference between http and https. so SSL has nothing to do with it Paul - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, October 08, 2006 8:40 PM Subject: Re: [twsocket] Memory leaks Paul wrote: Hi

Re: [twsocket] Memory leaks

2006-10-09 Thread Francois Piette
I see no difference between http and https. so SSL has nothing to do with it That's a good news. It eliminate the need to investigate for the SSL part. Have a look at your global dynamic variables and dynamic variables assigned to forms which have the same timelife as the program. Contribute to

Re: [twsocket] Memory leaks

2006-10-09 Thread Paul
That's a good news. It eliminate the need to investigate for the SSL part. Have a look at your global dynamic variables and dynamic variables assigned to forms which have the same timelife as the program. Everything is created in runtime. Basically, I created an object that I can use in a

Re: [twsocket] Memory leaks

2006-10-09 Thread Francois Piette
That's a good news. It eliminate the need to investigate for the SSL part. Have a look at your global dynamic variables and dynamic variables assigned to forms which have the same timelife as the program. Everything is created in runtime. Basically, I created an object that I can use in

Re: [twsocket] Memory leaks

2006-10-09 Thread Paul
It is always interesting to reuse objects instead of destroying them and recreate a fresh copy. But speaking about stream, it depends on the type of stream. A TFileStream has to be destroyed to close the file. So as long I'm sending streams with a HttpCli, I don't need to free the stream

Re: [twsocket] Memory leaks

2006-10-09 Thread Johnnie Norsworthy
On 10/9/06, Paul [EMAIL PROTECTED] wrote: It is always interesting to reuse objects instead of destroying them and recreate a fresh copy. But speaking about stream, it depends on the type of stream. A TFileStream has to be destroyed to close the file. I thought about extending HTTPCli and

Re: [twsocket] Memory leaks

2006-10-09 Thread Francois PIETTE
It is always interesting to reuse objects instead of destroying them and recreate a fresh copy. But speaking about stream, it depends on the type of stream. A TFileStream has to be destroyed to close the file. I thought about extending HTTPCli and adding a property,

Re: [twsocket] Memory leaks

2006-10-09 Thread Johnnie Norsworthy
On 10/9/06, Francois PIETTE [EMAIL PROTECTED] wrote: I thought about extending HTTPCli and adding a property, CreateMemoryStreams. I use memory streams with HTTPCli and have to do this for every use. It would be nice it the create/free code was already done for me with a simple property

Re: [twsocket] Memory leaks

2006-10-09 Thread Francois PIETTE
It is always interesting to reuse objects instead of destroying them and recreate a fresh copy. But speaking about stream, it depends on the type of stream. A TFileStream has to be destroyed to close the file. So as long I'm sending streams with a HttpCli, I don't need to free the stream

[twsocket] Memory leaks

2006-10-08 Thread Paul
Hi, When my program is running (sending a stream about each second with SslHttpCli), I see the memory useage in the taskmanager increasing continuous. The SslHttpCli is running in a seperate thread. FastMM doesn't report any memory leaks, except for a string(20 bytes) AssumeMultiThreaded is

Re: [twsocket] Memory leaks

2006-10-08 Thread Arno Garrels
Paul wrote: Hi, When my program is running (sending a stream about each second with SslHttpCli), I see the memory useage in the taskmanager increasing continuous. The SslHttpCli is running in a seperate thread. FastMM doesn't report any memory leaks, except for a string(20 bytes)

Re: [twsocket] Memory leaks

2006-10-08 Thread Arno Garrels
. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Paul [EMAIL PROTECTED] To: TWsocket twsocket@elists.org Sent: Sunday, October 08, 2006 4:50 PM Subject: [twsocket] Memory leaks Hi

Re: [twsocket] Memory leaks

2006-10-08 Thread Arno Garrels
Paul wrote: Hi, When my program is running (sending a stream about each second with SslHttpCli), I see the memory useage in the taskmanager increasing continuous. May be cached SSL sessions are the reason? --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html The

Re: [twsocket] Memory leaks

2006-10-08 Thread Paul
BTW: Are you using (OverbyteIcs)SslThrdLock.pas which is a Must when running OpenSSL multi-threaded? No, how to use it ? Paul -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at

Re: [twsocket] Memory leaks

2006-10-08 Thread Arno Garrels
Paul wrote: BTW: Are you using (OverbyteIcs)SslThrdLock.pas which is a Must when running OpenSSL multi-threaded? No, how to use it ? It's described in the unit header. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Paul -- To unsubscribe or change your

Re: [twsocket] Memory leaks

2006-10-08 Thread Paul
- Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, October 08, 2006 8:49 PM Subject: Re: [twsocket] Memory leaks Paul wrote: BTW: Are you using (OverbyteIcs)SslThrdLock.pas which is a Must when running OpenSSL multi

Re: [twsocket] Memory leaks

2006-10-08 Thread Paul
I'm using V5 with this application. I don't have this unit Paul - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, October 08, 2006 8:49 PM Subject: Re: [twsocket] Memory leaks Paul wrote: BTW: Are you using

Re: [twsocket] Memory leaks

2006-10-08 Thread Paul
Hi Arno, i don't see any reason why i can't have a clent in the main thread and one in a seperate thread working together with the dll's. This would mean that 2 applications wouldn't be able to use the same SSL-dll's also Paul -- To unsubscribe or change your settings for TWSocket mailing

Re: [twsocket] Memory leaks

2006-10-08 Thread Arno Garrels
- From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, October 08, 2006 8:49 PM Subject: Re: [twsocket] Memory leaks Paul wrote: BTW: Are you using (OverbyteIcs)SslThrdLock.pas which is a Must when running OpenSSL multi-threaded? No, how to use

Re: [twsocket] Memory leaks

2006-10-08 Thread Arno Garrels
Paul wrote: Hi Arno, i don't see any reason why i can't have a clent in the main thread and one in a seperate thread working together with the dll's. This would mean that 2 applications wouldn't be able to use the same SSL-dll's also OpenSsl is thread safe as long as we provide the