🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TServerSocket SendText Exception

#2465
From: Eric Patterson
Date: Mon, 17 Apr 2006 13:47
18 lines
1694 bytes
I am having this akward exception being thrown randomly by the SendText 
method in a TServerSocket component.  I check to make sure there is an 
active connection right before I do a SendText and pass it an ansistring. 
The exception is being thrown at random times usually after running more 
then 6 hours.  The exception that is being thrown is an invalid integer 
exception.  Then right after that one, the same line throws an eaccess 
violation.  As anyone seen this problem before or know what is wrong.  Here 
is my code snippet:

while(Server->ServerSocket1->Socket->Connections[ii]->SendText(AnsiString(AMsg+"\n"))==-1)
          {
            Sleep(10);       // allow some time for Socket to send the 
queued up data.
          }

I am using BCD 5.  Thanks.

Eric
Technical Details
Message-ID: <44439c71$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,fea0b13af0f4efa8,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Eric Patterson" <eric.patterson@bepco.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: TServerSocket SendText Exception
Date: Mon, 17 Apr 2006 09:47:29 -0400
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 70.225.107.130
Message-ID: <44439c71$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145281649 70.225.107.130 (17 Apr 2006 06:47:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail