integer overflow; UniDAC6.2.8

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
carlonarcisi
Posts: 29
Joined: Fri 10 Dec 2010 15:07

integer overflow; UniDAC6.2.8

Post by carlonarcisi » Tue 20 Oct 2015 05:29

hi
DelphiXE2, UniDAC6.2.8
when I try to connect MS SQL SERVER 2008R2 it's raised an error "integer overflow";
I follow error .. in unit DASQLMonitor i've made this changes, the problem is on BobJenkinsHash this function raise "integer overflow" :

function GetObjectID(Obj: TObject): Integer;
var
s: string;
begin
if Obj = nil then
Result := 0
else
Result := Integer(Obj{$IFDEF CLR}.GetHashCode{$ENDIF});
(*
if (Obj is TComponent) and (TComponent(Obj).Name <> '') then
begin
s := IntToHex(NativeInt(Obj), SizeOf(Pointer) * 2) + TComponent(Obj).Name;
Result := BobJenkinsHash(s[1], Length(s) * SizeOf(s[1]), 0);
end
else
Result := Integer(Obj);*)

end;

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: integer overflow; UniDAC6.2.8

Post by AlexP » Tue 20 Oct 2015 08:19

Hello,

We couldn't reproduce the problem on the latest version of UniDAC and XE2. Please clarify, what application are you developing: VCL or FMX? Also specify the Windows platform (x32/x64) or Mac OS X. In addition, clarify when the error occurs: on connection opening, query execution, etc.?

carlonarcisi
Posts: 29
Joined: Fri 10 Dec 2010 15:07

Re: integer overflow; UniDAC6.2.8

Post by carlonarcisi » Wed 11 Nov 2015 07:08

hi alex
Unidac 6.2.8 DelphiXe2 UpDate4 hotFix 1
Project is for windows

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: integer overflow; UniDAC6.2.8

Post by AlexP » Wed 11 Nov 2015 07:34

We have already fixed this problem. The fix will be added to the next UniDAC version.

Post Reply