ScBridge romps on Random (Delphi)

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
cboling
Posts: 24
Joined: Fri 12 Apr 2013 01:00

ScBridge romps on Random (Delphi)

Post by cboling » Fri 16 Feb 2018 00:59

When ScBridge is in a Delphi 7 module's USES clause, it breaks calls to the Delphi RANDOM function (which generates a real-type random number in a specified range), because that name is also used for a global TScObject variable in ScBridge.pas.

(1) Do you consider this to be a bug in SecureBridge that ought to be corrected?
(2) What's the easiest way to work around it? Is there a way to tell Delphi that I'm referring to the built-in function instead of SCBridge's object?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: ScBridge romps on Random (Delphi)

Post by ViktorV » Fri 16 Feb 2018 10:13

The presence of the global variable Random in the ScBridge module corresponds to our architecture and is not a bug.
To call Borland's Random function, you should execute the System.Random code.

cboling
Posts: 24
Joined: Fri 12 Apr 2013 01:00

Re: ScBridge romps on Random (Delphi)

Post by cboling » Fri 16 Feb 2018 16:39

Of course! That's such a standard way of clarifying references in other languages that I should've just tried it. Thanks, Viktor.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: ScBridge romps on Random (Delphi)

Post by ViktorV » Fri 16 Feb 2018 17:05

Thank you for the interest in our products.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.

Post Reply