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, and the execution simply fails.

Therefore, I had to apply the following fix:

    if Tick = FPrevTick then
        FCurSpeed := 0
        FCurSpeed := 8 * (FTotalCount - FPrevCount) / (Tick - FPrevTick);

Everything works fine now, but I'd prefer the fix to be included in the ICS

Please, review and check it in, if possible.

Thanks in advance,

Vladimir Kudlein
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