maomao2028 replied to pyscripter's topic in Python4Delphi
It seems ThreadPythonExec does not work. and memory leak occurs
procedure TForm1.Button2Click(Sender: TObject);
begin
ThreadPythonExec(
procedure
begin
GetPythonEngine.Execstring('print(10)');
end);
end;
In delphi, with the help of p4d's mainmodule.xxx(v), the python function is called, where the v input is the bytes type, how to convert Tbytes to bytes type in Delphi