[fpc-pascal] PascalScript / FPC: parameters problems (need internals gurus I think)

Michael Van Canneyt michael at freepascal.org
Tue Aug 8 21:37:27 CEST 2006



On Tue, 8 Aug 2006, Jonas Maebe wrote:

> 
> On 08 Aug 2006, at 20:39, Alexandre Leclerc wrote:
> 
> > *Problem*
> > I'm exporting some classes (originally a TBitmap; now a custom class)
> > to the ROPS engine and then interacting with the class in the
> > scripting engine. Everything works, except for some functions that
> > behave very strange. They skip/duplicate the parameters and invert
> > parameters.
> 
> Try declaring the methods as "stdcall" (although I'm not sure whether this
> works for methods).

That won't work. Delphi doesn't use stdcall by default, so the ROPS engine
doesn't expect this.

The problem is more likely that all arguments are extended, which probably
means that the stack is used differently. Are they pushed on the FPU stack ?

Michael.



More information about the fpc-pascal mailing list