Re: [twsocket] 100% cpu; continues calls to OnDataAvailable while no data was received - it gets more vague

2008-04-23 Thread Merijn Bosma
I'm still searching for the cause of my problem. It keeps happening at intervals of a few hours, but very hard to reproduce at our office. Looking at the call stack when in 'error state', it seems that winsock just keeps pushing FD_READ messages while there is actually no data to receive. I've

Re: [twsocket] 100% cpu; continues calls to OnDataAvailable while no data was received - it gets more vague

2008-04-23 Thread Francois Piette
> I'm still searching for the cause of my problem. It keeps happening at > intervals of a few hours, but very hard to reproduce at our office. I already seen some security product which intercepted winsock calls producing some strange results. Check on the installation where to have the issue and

Re: [twsocket] 100% cpu; continues calls to OnDataAvailable while no data was received - it gets more vague

2008-04-23 Thread Merijn Bosma
This machine is a clean window XP installation. The only thing I can find which comes _remotely_ close to what you mention, is the driver which came with the NIC (broadcom sofware) which looks a little bit bloated. But I can't imagine that has anything to do with it. I've looked for LSP, but did

[twsocket] NTLM Unicode bug and lazy fix

2008-04-23 Thread Arno Garrels
Hello all, I stumbled across this function in (OverbyteIcs)NtlmMsg.pas today: function Unicode(const AData: String): String; var I, J : Integer; begin SetLength(Result, Length(AData) * 2); J := 1; for I := 1 to Length(AData) do begin Result[J] := AData[I]; Inc(J);

Re: [twsocket] 100% cpu; continues calls to OnDataAvailable while no data was r

2008-04-23 Thread Angus Robertson - Magenta Systems Ltd
> This machine is a clean window XP installation. With or without Windows firewall enabled? With or without Windows Defender enabled? Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our websi

Re: [twsocket] NTLM Unicode bug and lazy fix

2008-04-23 Thread Anatoly Podgoretsky
I think if no support old OS, then code can looks such Also may be need add addition default parameter CodePade? function AnsiToUnicode(const AData: String): WideString; var Len : Integer; begin Len := MultiByteToWideChar(CP_ACP, 0, Pointer(AData), Length(AData), nil, 0); if Len > 0 t

Re: [twsocket] 100% cpu; continues calls to OnDataAvailable while no data was r

2008-04-23 Thread Merijn Bosma
Windows firewall is disabled. Windows Defender is not installed. Merijn Angus Robertson - Magenta Systems Ltd wrote: >> This machine is a clean window XP installation. >> > > With or without Windows firewall enabled? > > With or without Windows Defender enabled? > > Angus > -- To unsu

Re: [twsocket] NTLM Unicode bug and lazy fix

2008-04-23 Thread Arno Garrels
Hello Anatoly, > I think if no support old OS, then code can looks such Ok, I shouldn't be lazy, I'll add support for windows playstation v0.1 alpha tomorrow as well ;-) > Also may be need add addition default parameter CodePade? Good idea to add an optional parameter to be able to specify a c

Re: [twsocket] NTLM Unicode bug and lazy fix

2008-04-23 Thread Anatoly Podgoretsky
Hi Arno! Of cource idea in this, allow enable change default codepage About support old OS I'm not sure, you must decide itself, realy such computers no such more. Also again about default parameters - what minimal Delphi Version ICS must support, defaults not supported with early versions of De

Re: [twsocket] 100% cpu; continues calls to OnDataAvailable while no data was received - it gets more vague

2008-04-23 Thread Francois PIETTE
> I've looked for LSP, but didn't find anything, can you explain what you > mean with it? http://www.microsoft.com/msj/0599/LayeredService/LayeredService.aspx -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) h