I think he is using sync methods which consume a fake 100% CPU. I 
experienced the same with TFtpServer 5 years ago before I switched to async. 
the reason is the default message pump of ICS uses PeekMessage whereas my 
suggestion is to build a message pump with GetMessage.

Best Regards,

SubZ

----- Original Message ----- 
From: "Francois Piette" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Thursday, March 16, 2006 3:46 PM
Subject: Re: [twsocket] twsocket cpu usage


>> Is there a way to limit the cpu usage when receiving files thru TWsocket?
>> Usualy CPU is 90-100% used and the computer freezes for
>> the time the transfer is made.
>
> TWSocket component doesn't use much of the CPU. It is likely that in your 
> application you've done
> some wait loop which eat all CPU.
>
> Can you show the part of your code which receive a file ?
>
> --
> Contribute to the SSL Effort. Visit
> http://www.overbyte.be/eng/ssl.html
> --
> [EMAIL PROTECTED]
> Author of ICS (Internet Component Suite, freeware)
> Author of MidWare (Multi-tier framework, freeware)
> http://www.overbyte.be
>
>
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to