remobjects / pascalscript

pascalscript
Other
447 stars 178 forks source link

win64 problem with string #238

Closed relativ closed 4 years ago

relativ commented 4 years ago

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

carlokok commented 4 years ago

It should be. @evgeny-k ?

evgeny-k commented 4 years ago

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

jozunav commented 4 years ago

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

jozunav commented 4 years ago

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