remobjects / pascalscript

pascalscript
Other
450 stars 182 forks source link

Compile Error Invalid cast InvokeCall.inc(116) #245

Open kaizirlewagen opened 3 years ago

kaizirlewagen commented 3 years ago

I use Delphi 10.1 with the latest MASTER code source.

I use the sample from "Samples\TestApp\" and i add source folder to the search path of the project.

I don't install the packages. I want to have a stand alone version. I worked a lot with Pascalscript.

All units where found but if i try to compile the new test project the following error raised:

[dcc32 Error] InvokeCall.inc(116): E2089 Invalid typecast

btSingle: psingle(res.dta)^ := Double(Invoke(Address,Args,SysCalConv,TypeInfo(Single),False,IsConstr).AsExtended); btDouble: pdouble(res.dta)^ := Double(Invoke(Address,Args,SysCalConv,TypeInfo(Double),False,IsConstr).AsExtended);

What is missing in my stand alone installation? Do you have any ideas?

martijnlaan commented 3 years ago

Try the stable branch, it shouldn't have this problem.

kaizirlewagen commented 3 years ago

Thx... works as expected.