[twsocket] BUG REPORT: Division by zero

2012-10-16 Thread Vladimir Kudelin
Hi, In my application I occasionally get the EDivByZero exception in OverbyteIcsMultipartHttpDownloader.pas (line 706): FCurSpeed:= 8 * (FTotalCount - FPrevCount) / (Tick - FPrevTick); Because of I'm using TMultipartHttpDownloader in threads, it's pretty difficult to catch the exception,

[twsocket] ADV: WebSockets server component and demo

2012-10-16 Thread Stan
Hi, I've create a Google code project to host WebSockets server implementation for ICS, accessible now at http://code.google.com/p/ics-websockets/. The code did not change much from March, when it was intially created and sent to Francois. I'm not working on this now, but hope it can be useful

Re: [twsocket] ADV: WebSockets server component and demo

2012-10-16 Thread Arno Garrels
Stan wrote: Hi, I've create a Google code project to host WebSockets server implementation for ICS, accessible now at http://code.google.com/p/ics-websockets/. The code did not change much from March, when it was intially created and sent to Francois. I'm not working on this now, but

[twsocket] Found serious bug in HdrEncodeInline and/or StrEncodeQPEx

2012-10-16 Thread Max Terentiev
Hi All, Just found serious bug in HdrEncodeInLine (ICS v7 latest release) ! Probably ICS v8 contains it to ! It's happens only with 'Q' (quoted-printable) encoding ! It's happens only with strings leading with many spaces. Just run this code to reproduce it: AnsiString tmpStr= bla bla bla;

[twsocket] Again about serious bug in HdrEncodeInline and/or StrEncodeQPEx

2012-10-16 Thread Max Terentiev
Hi, After receiving my message I see that code for reproduce problem is changed during transfer (spaces removed from beginning of test string). So, to reproduce problem run this: AnsiString tmpStr=MANY SPACEs Bla Bla Bla; HdrEncodeInLine(tmpStr,SpecialsRFC822,'Q',windows-1251,60,true); Replace