Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : Re: Memory leak using TClientSocket
| Subject: | Re: Memory leak using TClientSocket |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 3 Oct 2006 10:21:05 |
<ian@bluechipbridge.co.uk> wrote in message
news:1159877863.202085.101930@k70g2000cwa.googlegroups.com...
> If I run more than one copy of my program and have each of them talk
> to a TServerSocket, when I close the client programs, one or more them
> (usually two or three) show a memory leak in Windows Task Manager
> of about 7KB (slightly different for each program).
Are you using the SendStream() method, by chance? If so, then don't. Send
your data manually using SendBuf() instead.
> There's a reference to a TClientSocket leak in Quality Central 12266.
> The resolution from Robert Ehteshamzadeh says that TClientSocket is
> deprecated.
TClientSocket (and TServerSocekt) is technically deprecated, yes. But it is
still available to use and works fine.
Gambit
none