Install problem on Lazarus

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Dr Mac
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 09.06.2008, 09:20

Post by Dr Mac »

gto wrote: Hum :)

Good to know that it's working =)

Can you make a benchmark concerning Lazarus 32 and 64 ? It would be interesting!
So...
I have only a 64 bit system, my 32 bit Debian is in a Virtualbox machine. Benchmarking this install maybe leads some strange result :lol:
gto
Zeos Dev Team
Zeos Dev Team
Posts: 278
Joined: 11.11.2005, 18:35
Location: Porto Alegre / Brasil

Post by gto »

hgourvest wrote:Dr Mac,

You should used PtrInt datatype instead of Int64 for transtyping.

{$IFNDEF FPC}
PtrInt = longint;
{$ENDIF}

herni
Well, as I already said, I'm no expert in 64-bits platform, but the previous code used LongInt and it didn't worked, 'cause LongInt is 32 bits and theses changes take portions of code where the memory address is converted to an integer, to get a "particular hash" of every object.

Maybe you meant to answer PtrInt64, which would be a pointer to a Int64, but even this don't make sense to me.
Use the FU!!!!!IN Google !

gto's Zeos Quick Start Guide

Te Amo Taís!
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

gto,
I think Henri means you should use Result := PtrInt(Self) instead of Result := LongInt(Self) and declare PtrInt for the non-fpc compilers as a longint.
This way fpc64 uses an Int64 and all other compilers a longint.

Mark
Image
gto
Zeos Dev Team
Zeos Dev Team
Posts: 278
Joined: 11.11.2005, 18:35
Location: Porto Alegre / Brasil

Post by gto »

mdaems wrote:gto,
I think Henri means you should use Result := PtrInt(Self) instead of Result := LongInt(Self) and declare PtrInt for the non-fpc compilers as a longint.
This way fpc64 uses an Int64 and all other compilers a longint.

Mark
AH! Right ;)
didn't get it from first time ;)
Use the FU!!!!!IN Google !

gto's Zeos Quick Start Guide

Te Amo Taís!
Post Reply