Fran├žois,

Windows limit the number of windows handles to 10.000. That's why ICS V7 is
designed to use only one handler for a lot of TWSocket so that you can
create a lot of sockets. Which OS are you using which allows creating
1.000.000 handles ?


Windows 7 64bit with 4GB RAM, and it does allow the creation of 1.000.000 handlers and 800.000 TWSocket instances (After I changed the ICS implementation)


Classes.AllocateHwnd and TIcsWndHandler.AllocateHWnd both use the same API
(CreateWindowEx
) to create the handle so both should be able to create the same number of
those.

That is what I was expecting, but not what is happening

The number of TWSocket which can be created also depends on the "non page
memory pool" you OS has. Each socket consume some space there and this space
is not unlimited.

I know it is not unlimited ;)

I will give further details and a sample program
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to