Lazarus win64 compile error

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Lazarus win64 compile error

Post by snorkel » Fri 07 Feb 2014 17:14

Hi,
using the most recent release of securebridge on Lazarus using 2.6.2 compiler I am getting this error when building as a win64 exe:

C:\lazarus\components\sbridge\Source\ScBridge.pas(636,113) Error: range check error while evaluating constants
C:\lazarus\components\sbridge\Source\ScBridge.pas(1053,1) Fatal: There were 1 errors compiling module, stopping

Any ideas?

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Re: Lazarus win64 compile error

Post by snorkel » Fri 07 Feb 2014 17:55

If I comment out this:
{$IFNDEF CLR}default HKEY_CURRENT_USER{$ENDIF}

in ScBridge.pas it compiles.

Does not like the default value on the property.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: Lazarus win64 compile error

Post by Dimon » Tue 11 Feb 2014 11:34

To solve the problem, add the following code to the interface section of the ScBridge.pas unit:

Code: Select all

{$IFDEF FPC}
{$IFDEF MSWINDOWS}
const
  HKEY_CURRENT_USER = NativeUint($80000001);
{$ENDIF}
{$ENDIF}

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Re: Lazarus win64 compile error

Post by snorkel » Tue 11 Feb 2014 15:57

Thanks,
That fixed it.

Will you guys have that fix in the next version?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: Lazarus win64 compile error

Post by Dimon » Wed 12 Feb 2014 11:42

Yes, this fix will be included in the next SecureBridge build.

Post Reply