🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TServerSocket SendText Exception

#2381
From: Eric Patterson
Date: Thu, 20 Apr 2006 17:11
37 lines
2344 bytes
That is all fine but why?  I would love to fix my issue but I am not a 
person to shoot shotguns in the dark and hope to hit the target.  If what 
you have gave me before will fix it then someone here should be able to tell 
me why that will fix it.  What causes the invalid pointer exception?  Why 
did this work in NT and now it doesn't in XP?  Please tell me the reason why 
I have this problem instead of telling me your way will fix it.  Thanks.

Eric


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:4447b917$3@newsgroups.borland.com...
>
> "Eric Patterson" <eric.patterson@bepco.com> wrote in message
> news:4447a6f6$1@newsgroups.borland.com...
>
>> I believe I understand how the ServerSocket should be used.
>
> Apparently you don't, because you didn't pay attention to a word I've told
> you.  Your code is still wrong.  You are not even close to using the kind 
> of
> code I gave you earlier.  Did you even try it?
>
>> The starting point of the exception is coming from this line
>> (line 56 in MsgServer.cpp):
>>
>>
> while(Server->ServerSocket1->Socket->Connections[ii]->SendText(AnsiString(AM
> sg+"\n"))==-1)
>
> As I explained to you earlier, that is a very bad way to send text to a
> socket.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <4447c0b0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.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
References: <44439c71$1@newsgroups.borland.com> <4443ca2a$1@newsgroups.borland.com> <4447a6f6$1@newsgroups.borland.com> <4447b917$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,fea0b13af0f4efa8
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
References: <44439c71$1@newsgroups.borland.com> <4443ca2a$1@newsgroups.borland.com> <4447a6f6$1@newsgroups.borland.com> <4447b917$3@newsgroups.borland.com>
Subject: Re: TServerSocket SendText Exception
Date: Thu, 20 Apr 2006 13:11:12 -0400
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
NNTP-Posting-Host: 70.225.107.130
Message-ID: <4447c0b0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145553072 70.225.107.130 (20 Apr 2006 10:11:12 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.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