Re: Indy 10.0.52 Range Check Error BUG

Giganews Newsgroups
Subject: Re: Indy 10.0.52 Range Check Error BUG
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Wed, 6 Apr 2005

"orlando" <seasidebru…@hotmail.com> wrote in message
news:E3B7E73C14C6E240seasidebru…@hotmail.com...

> I want to report the bug below with Indy 10.0.52... we get
> a range check error

That is a known problem.

> Indy 10 for Delphi 6\Source\System\IdGlobal.pas

You are using an older codebase.  The Win32 implementation of Ticks() in the
current snapshot looks like this instead:

    function Ticks: Cardinal;
    var
        nTime, freq: Int64;
    begin
        if Windows.QueryPerformanceFrequency(freq) then begin
            if Windows.QueryPerformanceCounter(nTime) then begin
                Result := Trunc((nTime / Freq) * 1000) and High(Cardinal)
            end else begin
                Result := Windows.GetTickCount;
            end;
        end else begin
            Result:= Windows.GetTickCount;
        end;
    end;

Gambit

Replies

In response to

Indy 10.0.52 Range Check Error BUG posted by orlando on Wed, 6 Apr 2005