🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
7 messages
7 total messages Started by Colin B Maharaj Wed, 06 Jun 2007 16:14
Indy 9 Memory Leak
#1038
Author: Colin B Maharaj
Date: Wed, 06 Jun 2007 16:14
14 lines
1391 bytes
Anybody knows if there is a 1 byte memory leak in
IdTcpClient->ReadLn() / WriteLn();

I am using Indy 9 (not sure which sub version).

I am creating a program that makes up to 32 simultaneous TCP connection
to another PC and gets data from it in the form of request / send.
Each connection has it's own thread.

Also I am writing to a character buffer, the status of the collection 
process then echoing it to screen via a timer in the main form.

I am using BCB6 (latest patches) on XP Pro (latest patches)
Re: Indy 9 Memory Leak
#1039
Author: Colin B Maharaj
Date: Wed, 06 Jun 2007 16:17
17 lines
1572 bytes
Oh, I am using MemProof  0.9.5.0

Colin B Maharaj wrote:
> 
> Anybody knows if there is a 1 byte memory leak in
> IdTcpClient->ReadLn() / WriteLn();
> 
> I am using Indy 9 (not sure which sub version).
> 
> I am creating a program that makes up to 32 simultaneous TCP connection
> to another PC and gets data from it in the form of request / send.
> Each connection has it's own thread.
> 
> Also I am writing to a character buffer, the status of the collection 
> process then echoing it to screen via a timer in the main form.
> 
> I am using BCB6 (latest patches) on XP Pro (latest patches)
Re: Indy 9 Memory Leak
#1040
Author: Remy Lebeau (TeamB)
Date: Wed, 06 Jun 2007 17:03
16 lines
1227 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message
news:4666dd76@newsgroups.borland.com...

> Anybody knows if there is a 1 byte memory leak in
> IdTcpClient->ReadLn() / WriteLn();

There is not.  Why do you think that there is?

> I am using Indy 9 (not sure which sub version).

Right-click on any Indy component in the Form Designer, or look at the
IdVers.inc file.


Gambit
Re: Indy 9 Memory Leak
#1041
Author: Colin B Maharaj
Date: Thu, 07 Jun 2007 00:01
20 lines
1595 bytes
Remy Lebeau (TeamB) wrote:
> "Colin B Maharaj" <noreply@myhost.com> wrote in message
> news:4666dd76@newsgroups.borland.com...
> 
>> Anybody knows if there is a 1 byte memory leak in
>> IdTcpClient->ReadLn() / WriteLn();
> 
> There is not.  Why do you think that there is?
> 
>> I am using Indy 9 (not sure which sub version).
> 
> Right-click on any Indy component in the Form Designer, or look at the
> IdVers.inc file.
> 
> 
> Gambit
> 
> 
You are right, it is not consistent out of hundreds of reads / writes. I 
see it happen only a few times. Back to the drawing board.
Re: Indy 9 Memory Leak
#1042
Author: Colin B Maharaj
Date: Thu, 07 Jun 2007 11:18
21 lines
1542 bytes
You know what, I think the culprit is AnsiString!!
They are not thread safe!!

Remy Lebeau (TeamB) wrote:
> "Colin B Maharaj" <noreply@myhost.com> wrote in message
> news:4666dd76@newsgroups.borland.com...
> 
>> Anybody knows if there is a 1 byte memory leak in
>> IdTcpClient->ReadLn() / WriteLn();
> 
> There is not.  Why do you think that there is?
> 
>> I am using Indy 9 (not sure which sub version).
> 
> Right-click on any Indy component in the Form Designer, or look at the
> IdVers.inc file.
> 
> 
> Gambit
> 
> 
Re: Indy 9 Memory Leak
#1043
Author: Colin B Maharaj
Date: Thu, 07 Jun 2007 11:52
26 lines
1732 bytes
'All righty then' I removed practically all occurrences
of AnsiString in my thread code and now I get three errors.
You know that ones that come with C++ Builder 6.0 at startup
and shutdown.
By the way - it was in the thousands!
Thus (AnsiString != ThreadSafe)!


Remy Lebeau (TeamB) wrote:
> "Colin B Maharaj" <noreply@myhost.com> wrote in message
> news:4666dd76@newsgroups.borland.com...
> 
>> Anybody knows if there is a 1 byte memory leak in
>> IdTcpClient->ReadLn() / WriteLn();
> 
> There is not.  Why do you think that there is?
> 
>> I am using Indy 9 (not sure which sub version).
> 
> Right-click on any Indy component in the Form Designer, or look at the
> IdVers.inc file.
> 
> 
> Gambit
> 
> 
Re: Indy 9 Memory Leak
#1049
Author: emerson.pardo
Date: Mon, 11 Jun 2007 14:44
28 lines
2147 bytes
Colin, do you replace AnsiString for string?

Thanks,
Emerson

On 7 jun, 08:52, Colin B Maharaj <nore...@myhost.com> wrote:
> 'All righty then' I removed practically all occurrences
> of AnsiString in my thread code and now I get three errors.
> You know that ones that come with C++ Builder 6.0 at startup
> and shutdown.
> By the way - it was in the thousands!
> Thus (AnsiString != ThreadSafe)!
>
> Remy Lebeau (TeamB) wrote:
> > "Colin B Maharaj" <nore...@myhost.com> wrote in message
> >news:4666dd76@newsgroups.borland.com...
>
> >> Anybody knows if there is a 1 byte memory leak in
> >> IdTcpClient->ReadLn() / WriteLn();
>
> > There is not.  Why do you think that there is?
>
> >> I am using Indy 9 (not sure which sub version).
>
> > Right-click on any Indy component in the Form Designer, or look at the
> > IdVers.inc file.
>
> > Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads