Recent

Author Topic: 64 bits and PascalScript  (Read 7127 times)

PascalDragon

  • Hero Member
  • *****
  • Posts: 6395
  • Compiler Developer
Re: 64 bits and PascalScript
« Reply #30 on: January 08, 2026, 09:56:17 pm »
If the commit you look for is
Quote
86a057c8686143ce0443be6995d6515c5c9b705c
* 1)InvokeCall added, instead of all different callers (x86, x64, powerpc etc) for Delphi 2010+. (#207)

then I don't know if it will work... From hear say, if at all then only with fpc 3.3.1, and potentially some extra conditions on top (but I have no idea).

It should work with FPC 3.2.2 as well (except the one or other bug), please note however that on non-Windows platforms or for stdcall and cdecl on i386-win32 libffi is required (for now).

maurog

  • Jr. Member
  • **
  • Posts: 84
Re: 64 bits and PascalScript
« Reply #31 on: March 28, 2026, 03:55:44 pm »
Hi,

I have extended the form designer from
https://github.com/havlicekp/form-designer

and integrated it with the RemObjects PascalScript Demo IDE.

Result:

Drag & Drop Form Designer – components can be placed directly using the mouse
Automatic Code Linking – double-clicking a designer element jumps directly to the corresponding code location
Debugger Support – breakpoints, Step Into / Step Over, etc.
Cross-platform – Linux & Windows

I have published the project on GitHub:
https://github.com/mdadali/PascalScript_IDE

There is an animated GIF right on the start page, so you don’t have to compile everything just to get an impression.

The project is still experimental, but I will definitely continue developing it.
Once you have such a tool, you can use it everywhere in the long term—especially where automation is needed.

Unfortunately, the well-known 64-bit bug in PascalScript is still present:
Events in GUI scripts are not triggered in the 64-bit version.

I have already slightly modified the JvDesign and PascalDebugger components for debugging purposes and provided them in the source/componente directory.
However, I currently lack the in-depth knowledge required to fix the 64-bit issue myself.

It would be great if someone with the necessary expertise could address this—then we would have a truly full-featured tool in the long run.

Best regards,
Maurog.
And yes, Lazarus is definitely a beast – it comes with everything you need, but sometimes also more than you expect. 😅 (Chat-GPT)

maurog

  • Jr. Member
  • **
  • Posts: 84
Re: 64 bits and PascalScript
« Reply #32 on: May 02, 2026, 01:10:53 pm »
Hello,
I fixed the 64-bit bug (events were not being triggered) with the help of AI and this article:
https://stackoverflow.com/questions/33648962/compiling-pascalscript-in-64-bit-mode-events-not-working
The result can be found here:
https://github.com/mdadali/PascalScript_IDE
Best regards,
Maurog.
And yes, Lazarus is definitely a beast – it comes with everything you need, but sometimes also more than you expect. 😅 (Chat-GPT)

 

TinyPortal © 2005-2018