Re: [twsocket] BUG REPORT: Division by zero

2012-10-17 Thread Arno Garrels
Vladimir Kudelin wrote: Therefore, I had to apply the following fix: if Tick = FPrevTick then FCurSpeed := 0 else FCurSpeed := 8 * (FTotalCount - FPrevCount) / (Tick - FPrevTick); Hello Vladimir, Many thanks for this, I just checked in your fix in both SVN repos, v7

[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,