🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Interaction between Integrated Debugger & TClientSocket or TServerSocket

#1109
From: EV14
Date: Tue, 15 May 2007 08:15
46 lines
2815 bytes
Humm, I'm realising that I misunderstood something about sockets : it 
seems that I don't prepare my sockets in the correct way before using 
them, but I don't know exactly what's wrong with them...

For ex, I want a SeverSocket managing port say 7890 and a ClientSocket 
connecting locally to it.
- on the ServerSocket1 component, I prepare Port=7890
- on the ClientSocket1 component, I prepare Address=127.0.0.1 and Port=7890.

I put the components on a fresh form with Active property to false and 
following code:

__fastcall TForm1::TForm1(TComponent* Owner)
         : TForm(Owner)
{
	ServerSocket1->Active=true ;
	ClientSocket1->Active=true ;
	ShowMessage( "1ere passe termin�e") ;
	ServerSocket1->Active=false ;
	ClientSocket1->Active=false ;
	ShowMessage( "2eme passe termin�e") ;
	ClientSocket1->Active=true ;
	ServerSocket1->Active=true ;
	ShowMessage( "3eme passe termin�e") ;
	exit(0) ;
}

* with Integrated Debugger activated, I get during execution :
{
	ServerSocket1->Active=true ;   --> throws an exception (the one I don't 
understand and mistakenly thought to be a interaction)
	ClientSocket1->Active=true ;
	ShowMessage( "1ere passe termin�e") ;
	ServerSocket1->Active=false ;
	ClientSocket1->Active=false ;
	ShowMessage( "2eme passe termin�e") ;
	ClientSocket1->Active=true ;
	ServerSocket1->Active=true ;
	ShowMessage( "3eme passe termin�e") ;
	exit(0) ;
}

* without Integrated Debugger activated, I get a smooth execution 
without any exception !

Please, what's wrong with my components preparation ?
Technical Details
Message-ID: <46496b68@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!proxad.net!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4648c4b4@newsgroups.borland.com> <4648d759$1@newsgroups.borland.com> <46493bc1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3763c159188c556a
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII
Date: Mon, 14 May 2007 22:15:35 -1000
From: EV14 <evuq1@bigfoot.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Interaction between Integrated Debugger & TClientSocket or TServerSocket
References: <4648c4b4@newsgroups.borland.com> <4648d759$1@newsgroups.borland.com> <46493bc1$1@newsgroups.borland.com>
In-Reply-To: <46493bc1$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: avast! (VPS 000740-0, 13/05/2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 203.185.183.213
Message-ID: <46496b68@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1179216744 203.185.183.213 (15 May 2007 01:12:24 -0700)
Lines: 46
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!proxad.net!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail