🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

socketconnection-thread issue

#1502
From: loukia
Date: Wed, 10 Jan 2007 05:37
33 lines
2298 bytes
hello,
im using a socketconnection component to connect to another pc.when the
address that im entering is
wrong the program freezes for a specific timeout (something like not
responding) because it waits
i would like to ask something about this:

a)how can i change the timeout period ,to make it smaller?it waits far too
long
b)how can i make it so that the program doesnt freeze?put it in a thread?
can you please help me with the code?(SocketConnection1->Active=true; is the
code)
this problem im experiencing in many other applications also,when i put a
big loop for
example and the computer makes long calculations the program freezes.
c)i have one simple line of code before the previous:
Label1->Caption="attempting connection:"
SocketConnection1->Active=true;
but sometimes(maybe most times) the label doesnt change it caption and the
program
appear to move to the next line and freezes until it finishes.of course when
the active true finishes
the label is show but why doesnt the program execute each line and then move
to the next one?
is there a way to avoid this?maybe use something like sleep()?

i would appreciate any help on these questions.thank you very much for your
time

loukia

ps.i would like to apologize if i originally placed this in the wrong 
newsgroup,thank you
Technical Details
Message-ID: <45a47b6d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder2.cambrium.nl!feed.tweaknews.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!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,884c216e0881e755,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "loukia" <loukiachr@hotmail.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: socketconnection-thread issue
Date: Wed, 10 Jan 2007 05:37:45 -0000
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 131.227.231.116
Message-ID: <45a47b6d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1168407405 131.227.231.116 (9 Jan 2007 21:36:45 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder2.cambrium.nl!feed.tweaknews.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail