This is the mail archive of the
mailing list for the Cygwin project.
Re: pthreads and sockets - Cannot register window class error
- From: Reini Urban <rurban at x-ray dot at>
- To: cygwin at cygwin dot com
- Date: Wed, 05 May 2004 14:44:16 +0200
- Subject: Re: pthreads and sockets - Cannot register window class error
- References: <BAY9-F6gmkLGeq3v7dq00002682@hotmail.com>
Arash Partow schrieb:
I can't replicate your problem, but I know where it is coming from,
basically standard windows winsock is not geared up to handle that man
socket connections. When a socket is made and then closed the socket
actually stays open for about 240-300 seconds depending on your
registry settings, this is so that winsock can make sure the
connection has been properly closed off.
Whilst this 240-300 seconds is passing by the socket is actually still
alive meaning the memory it occupies is still valid, its not until the
240 seconds has passed does winsock go and clean up the instance of
what you are seeing is that basically as you run your program more and
more times, you are creating sockets in memory, every time the socket
is closed YOU think that the socket is cleaned up but its not, and so
you basically loose a bit of memory until the timeout for the socket
has occurred, i guess through debugging where you run and re-run your
test app you have run out of RAM so you see these errors.
this explains the whole thing:
$ regtool -i set
But we already found out that the culprit was Norton Firewall, closing
your socket, wasn't it?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html