[Cvsnt] Leaking handles in Service.cpp DoCvsThread()

John Goehringer jgoehrin at sct.com
Thu Feb 28 17:31:49 GMT 2002


"Tony Hoyle" <tmh at nothing-on.tv> wrote in message
news:3c7e50d0.90906609 at tony-home...
> On Thu, 28 Feb 2002 15:23:39 +0000 (UTC), "John Goehringer"
> <jgoehrin at sct.com> wrote:
>
> >Hi,
> >
> >In DoCVSThread, the handle passed as the parameter is eventually
> >released with a call to CloseHandle().
> >
> >The handle created by accept() does not seem to be completely
> >released by CloseHandle(). With each TCP protocol request
> >the service's handle count goes up by one. Requests over the
> >named pipe do not make the service leak.
> >
> How are you measuring this?  A socket is a handle under NT, so it
> shouldn't make any difference.
>
> Tony
>
> _______________________________________________
> Cvsnt mailing list
> Cvsnt at cvsnt.org
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt

With sysinternals.com Process Explorer -

http://www.sysinternals.com/ntw2k/freeware/procexp.shtml

The Task Manager will show it also, by adding Handle Count
to the Processes display.

The process explorer shows the leaked handle of type file, with
a device name of \Device\Tcp. It's the handle with the highest
'value'.

Thanks,
John



_______________________________________________
Cvsnt mailing list
Cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt



More information about the cvsnt mailing list