🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdTCPServer Command Handler

#4762
From: Remy Lebeau (TeamB)
Date: Wed, 29 Dec 2004 21:43
20 lines
1884 bytes
"Ronny" <potapenko@check.com> wrote in message
news:41d32299$1@newsgroups.borland.com...

> No I didn't. It was my first question, I wanted to know if I had to create
> an OnDisconnect. But I didn't say all about my code so I appologize

In general, OnDisconnect is not needed.  However, you did not say anything
earlier about using the thread's Data property.  That changes things a bit,
because now you have to manage the data that you are assigning.

> So the onlye thing I needed to do is to add ": public TObject" to my
class.

Only if you don't mind the extra overhead that TObject brings to your class.
Otherwise, use the OnDisconnect event to free your object instance
regardless of what it does or does not derive from.


Gambit
Technical Details
Message-ID: <41d324b5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!63.218.45.10.MISMATCH!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41d2f642$1@newsgroups.borland.com> <41d2ff3d$1@newsgroups.borland.com> <41d3044e$1@newsgroups.borland.com> <41d307a3$1@newsgroups.borland.com> <41d30da2@newsgroups.borland.com> <41d32299$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d17d5067aebc2759
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: <41d2f642$1@newsgroups.borland.com> <41d2ff3d$1@newsgroups.borland.com> <41d3044e$1@newsgroups.borland.com> <41d307a3$1@newsgroups.borland.com> <41d30da2@newsgroups.borland.com> <41d32299$1@newsgroups.borland.com>
Subject: Re: TIdTCPServer Command Handler
Date: Wed, 29 Dec 2004 13:43:29 -0800
Lines: 22
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: <41d324b5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1104356533 68.69.17.41 (29 Dec 2004 13:42:13 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!63.218.45.10.MISMATCH!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail