Page 1 of 1

integer overflow; UniDAC6.2.8

Posted: Tue 20 Oct 2015 05:29
by carlonarcisi
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;

Re: integer overflow; UniDAC6.2.8

Posted: Tue 20 Oct 2015 08:19
by AlexP
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.?

Re: integer overflow; UniDAC6.2.8

Posted: Wed 11 Nov 2015 07:08
by carlonarcisi
hi alex
Unidac 6.2.8 DelphiXe2 UpDate4 hotFix 1
Project is for windows

Re: integer overflow; UniDAC6.2.8

Posted: Wed 11 Nov 2015 07:34
by AlexP
We have already fixed this problem. The fix will be added to the next UniDAC version.