I saw
https://forum.lazarus.freepascal.org/index.php/topic,71170.msg573513.html#msg573513Unfortunately I don't know the answer.
I also don't know if your event method (the code to be called) is
- in pascal script
- in the compiled exe, but to be called by the script
?
In any case, I know some case are not implemented, search the source for:
(at least I think that is the related part / needs to be double checked)
{$ifdef fpc}
{$if defined(cpu86)} // Has MyAllMethodsHandler
{$else}
// {$if defined(cpupowerpc) or defined(cpuarm) or defined(cpu64)}
{$define empty_methods_handler}
{$ifend}
{$endif}
I don't know what the planned solution for that is.
IIRC (but rather like a faint memory) there was talk about using RTTI calling... Not sure, I think that requires fpc 3.3.1 and depending on OS also some external library (dll/so). But I may be mixing that up.
---
In any case, the version of Pascalscript included in Lazarus is primarily for supporting editor-macros in the IDE.
It will occasionally be updated, but for your own projects you may still need to download from the original side if you require up-to-date fixes.