RTC Forums

Subscription => Support => Topic started by: bikotronic on September 11, 2020, 08:33:50 AM



Title: function Get_TickTime Exception
Post by: bikotronic on September 11, 2020, 08:33:50 AM
Delphi 10.x
RealThinClientSDK_v951_2020Q2
unit rtcSystem;

The function Get_TickTime uses the function INT64 but returns a cardinal.
on ios there will be a exception

Code:
  {$ELSE}{$IFDEF MACIOS}
    var
      tv: timeval;
    begin
    gettimeofday(tv, nil);
    Result := int64(tv.tv_sec) * 1000 + tv.tv_usec div 1000;
    end;
  {$ELSE}

here is the fix
Line 796
function Get_TickTime:int64;//Cardinal;
Line 2733
function Get_TickTime:int64;//Cardinal;