🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Indy 9 - UDP Server and Client

#2155
From: Remy Lebeau (TeamB)
Date: Tue, 01 Aug 2006 20:10
22 lines
1642 bytes
"Paul at NCF" <not plmacca@clara.co.uk> wrote in message
news:44cf0014@newsgroups.borland.com...

> I'm using TIdUDPClient and TIdUDPServer components in threads,
> both instantiated in their appropriate threads.  The transmissions and
> data received processing is handled in the threads, with no interaction
> with the GUI.

Did you set the TIdUDPServer's ThreadedEvent property to True?  If not, then
the OnUDPRead event handler is executed in the context of the main thread.

> My test program allows the application to start as server or client, and I
> run the application twice, selecting server or client.  This seems to
cause
> a problem, they freeeze during the run and one hangs when closing.

Then you are likely not managing them properly. Please show your actual
code.


Gambit
Technical Details
Message-ID: <44cfb716$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44cf0014@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,30a8f8e1a1549b1e
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <44cf0014@newsgroups.borland.com>
Subject: Re: Indy 9 - UDP Server and Client
Date: Tue, 1 Aug 2006 13:10:53 -0700
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <44cfb716$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1154463510 68.69.17.41 (1 Aug 2006 13:18:30 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail