Hi,
I am trying to call a pascal procedure (inside Lazarus) from python script using TpythonEngine but getting the following error under ubuntu with Lazarus 1.6.4:
-----------
Project prj1 raised exception class 'External: SIGSEGV'.
In file 'Sources/Core/MethodCallBack.pas' at line 187:
page^.next:=CodeMemPages;
-----------
The function is
function spam_foo( self, args : PPyObject ) : PPyObject; cdecl;
The wiki about the python component
http://wiki.freepascal.org/Using_Python_in_Lazarus_on_Windows/Linux is very good but does not address how to call a function/procedure from python.
There are several examples with delphi example but is not included in the Lazarus package.
Anybody has any suggestion on solving the issue?