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 ?

After more testing, and a clear mind of a new day, I found that I was doing some things wrong.. The limit is really 10.000 handles, and if I create 10.000 handles I can´t create any more TWSocket or anything, so you are right, sorry about that

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.

You are right here too, it doesn´t matter using your allocatehandle or classes.allocateHwnd, the results are the same


What I do found is that windows imposes a lesser limit (Less than 2.000 handles) for service applications that runs under LocalSystem account and do not have desktop interaction, so, by the end of the day, the problem was not related to ICS itself, but to windows service management.

If you make a simple service application that tries to create 10.000 handles, it won´t create even 2.000, but if you activate the Deskop Interaction flag in the service, than you can create almost 10.000


Sorry about the confusion

10.000 is a huge number and we will never use that amount of resources, it was just for testing, just to make it clear

Thanks
Eric
--
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