Issues Running TPSScript on x64 in Lazarus 3.8 lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- lhl · 2025-03-30 21:50 I'm using TPSScript, and the code below works correctly on x86. However, when I compile it in x64, it doesn't run. Does anyone know why?  I'm using Lazarus 3.8 64x. My Script: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure fechar(Sender: TObject; var CloseAction: TCloseAction);begin   Showmessage( 'Vou fechar' );end; procedure exec;var F: TForm;begin   F :=  TForm.Create(NIL);   try      F.OnClose := @fechar;      F.ShowModal;   finally      F.Free;   end;end; ---------------------------------------------------------------------- Martin_fr · 2026-01-04 14:41 I saw https://forum.lazarus.freepascal.org/index.php/topic,71170.msg57 3513.html#msg573513 Unfortunately 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) Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$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.