Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Name conflict
Wed, Nov 8 2017 7:28 AMPermanent Link

Michael Dreher

This is the code:

unit Reports;
interface
uses WebCore;
                             
implementation
var FI : integer;

procedure Reports_Init(i : integer);
begin
 FI := i;
end;

initialization
 Reports_Init(123);
end.

The result is a "runtime stackoverflow" by some browsers, or "invalid script" by others. The JavaScript function "reports_init" is generated twice.

function reports_init(i) // <-- my functions
{
  reports_fi = i;
};

function reports_init() // <-- unit initialization function
{
  reports_init(123);
};

The work around is simply to rename the procedure "Reports_Init" to something different.

Michael Dreher
Wed, Nov 8 2017 10:50 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< This is the code: >>

Got it, thanks.

Tim Young
Elevate Software
www.elevatesoft.com
Image