🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Borland C++ 5 TServerSocket TimeOut

#2252
From: Justin L Hudson
Date: Mon, 10 Jul 2006 12:27
48 lines
2867 bytes
It is a pointer to data in another thread that could be getting changed 
somehow.  Would have to look deeper.  I have error log loaded in the program 
and it catches exception "EInvalidPointer", but sometimes also catches 
"ESocketError - Only one usage of each socket address is normally 
permitted", but think I have handled that one now.  Good to know SendBuf 
would not be throwing the excpection, so can focus on other reasons pointer 
might be getting messed up.

I would agree with you that the socket is no longer the issue main, thanks 
for all the help.

Justin


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:44ad7444$1@newsgroups.borland.com...
>
> "Justin L Hudson" <justin.hudson@bepco.com> wrote in message
> news:44ad61ce$1@newsgroups.borland.com...
>
>> Also the clients connected have about a 5 second timer if they
>> do not get data they will close() and try and reconnect again.
>
> You should implement that scheme inside your server code as well.  If the
> server does not receive data from a client after while, then disconnect 
> the
> client.  Then make your clients send data periodically to keep the
> connection alive.
>
>> I have a try {} and catch {} around 'SendBuf', but in some rare
>> cases it will throw an "Invalid Integer" as the exception
>
> SendBuf() does not throw that exception.  You probably passed in an 
> invalid
> memory block.  What is the actual exception class type and completely
> Message?  What does your sending code look like?
>
>> Also happens with the ErrorCode being set to zero on 'OnClientError'
> event.
>
> All the more reason to suspect that the exception is occuring outside of 
> the
> socket altogether.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <44b24787$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44ac0064@newsgroups.borland.com> <44ac15e3$1@newsgroups.borland.com> <44acf764$1@newsgroups.borland.com> <44ad4c7c$1@newsgroups.borland.com> <44ad61ce$1@newsgroups.borland.com> <44ad7444$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,43b3cea56f3f8096
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Justin L Hudson" <justin.hudson@bepco.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <44ac0064@newsgroups.borland.com> <44ac15e3$1@newsgroups.borland.com> <44acf764$1@newsgroups.borland.com> <44ad4c7c$1@newsgroups.borland.com> <44ad61ce$1@newsgroups.borland.com> <44ad7444$1@newsgroups.borland.com>
Subject: Re: Borland C++ 5 TServerSocket TimeOut
Date: Mon, 10 Jul 2006 08:27:28 -0400
Lines: 50
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: <44b24787$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1152534407 70.225.107.130 (10 Jul 2006 05:26:47 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail