🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1045

Re: Code Guard error when using Indy9

#1045
From: Colin B Maharaj
Date: Thu, 07 Jun 2007 13:09
25 lines
1767 bytes
Readable / Writable everything....

So here is whats happening
1. Not use any AnsiString in my thread code.
but....
2. Certain Indy function were calling VCL code like TList
which could have AnsiStrings. So I had to use these functions

Instead of writeln...
a) TCPClient->Socket->Send("SEND\r\n", 6);

b) Instead of Readable remove it completely and use this....

char c;
TCPClient->ReadBuffer(&c, 1);


....instead except I do not know the behavior of it too much
just need to write a timeout variation of it...

Now codeguard and memory profiler shows only 1 error

Opps, my connection code uses Readable for testing so I will have to 
remove this.
Technical Details
Message-ID: <466803a6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4667f6b5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d2409e19f81077a6
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 07 Jun 2007 09:09:56 -0400
From: Colin B Maharaj <noreply@myhost.com>
User-Agent: Thunderbird 1.5.0.12 (Windows/20070509)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Code Guard error when using Indy9
References: <4667f6b5$1@newsgroups.borland.com>
In-Reply-To: <4667f6b5$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 000748-0, 06/07/2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 201.238.100.49
Message-ID: <466803a6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1181221798 201.238.100.49 (7 Jun 2007 06:09:58 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail