remobjects/pascalscript

win64 problem with string

relativ opened this issue · 4 comments

hi,

i compile pascalscript to win64 machine with no problem but when i call a plugin i create, the plugin has string properties that properties doesn't work i receive unknown properties ProviderName like .

is pascalscript compatible with 64 bit machines ? and how can i fix this problem

It should be. @evgeny-k ?

@relativ yes, it is compatible. can you create a simple testcase that reproduces this issue, pls?

procedure TForm1.Button1Click(Sender: TObject);
begin
PSScript1.Script.text := 'begin ShowMessage(''Hello Wold!!!!''); end.';
if PSScript1.Compile then
if PSScript1.Execute then
else
ShowMessage('Error Script:' + PSScript1.ExecErrorToString)
else
ShowMessage(PSScript1.CompilerErrorToStr(0));
end;

procedure TForm1.PSScript1Compile(Sender: TPSScript);
begin
Sender.AddFunction(@ShowMessage, 'procedure ShowMessage(msg: string))');
end;

//This code Fail unreconigze string
2020-09-07 21_14_15-Project1 - Delphi 10 4 - Unit1  Running   Built

I Only compile same code on 10.4 and Fail with diferent string displayed