🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Server Socket Problem

#4602
From: Remy Lebeau (TeamB)
Date: Mon, 17 Jan 2005 08:48
16 lines
1731 bytes
"Patrick Wong" <patrickwong@computer.org> wrote in message
news:41eb3f34$1@newsgroups.borland.com...

>     FClientSocket->~TWSocket();

Unless you used the "placement new" operator to allocate the memory, you
should NEVER execute a destructor directly like that.  All you are doing is
executing a method of the class, but you are not actually freeing the memory
that was used for the instance.  Always use the 'delete' operator instead,
it does free the memory:

    delete FClientSocket;


Gambit
Technical Details
Message-ID: <41eb7b62$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!news.zanker.org!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41e50bd0@newsgroups.borland.com> <41e5d556@newsgroups.borland.com> <41e63652$1@newsgroups.borland.com> <41eb3f34$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9670bce8fe2a64d1
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: <41e50bd0@newsgroups.borland.com> <41e5d556@newsgroups.borland.com> <41e63652$1@newsgroups.borland.com> <41eb3f34$1@newsgroups.borland.com>
Subject: Re: Server Socket Problem
Date: Mon, 17 Jan 2005 00:48:34 -0800
Lines: 18
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: <41eb7b62$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105951586 68.69.17.41 (17 Jan 2005 00:46:26 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!news.zanker.org!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail