Sign in Join
FPDoc Onlineexperiment

CallPointerMethod function

In unit Objects

Call a method with a single pointer argument.

Declaration

pascal
function CallPointerMethod(Method: CodePointer; Obj: pointer; 
 Param1: pointer): pointer

Description

CallPointerMethod calls the method with address Method for instance Obj. It passes Param1 to the method as the single argument. It returns a pointer to the instance.

Errors

If the method expects other parameters than a single pointer, the stack may become corrupted.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.