We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7452bf1 commit f8d48fdCopy full SHA for f8d48fd
Demos/Demo33/SortThds.pas
@@ -127,15 +127,17 @@ procedure TSortThread.ExecuteWithPython;
127
if Assigned(FModule) and (ThreadExecMode <> emNewState) then
128
FModule.InitializeForNewInterpreter;
129
if Assigned(fScript) then
130
+ try
131
ExecStrings(fScript);
132
+ except
133
+ end;
134
pyfunc := FindFunction(ExecModule, utf8encode(fpyfuncname));
135
if Assigned(pyfunc) then
136
try
137
EvalFunction(pyfunc,[NativeInt(self),0,FSize]);
138
except
139
end;
-
- Py_DecRef(pyfunc);
140
+ Py_XDecRef(pyfunc);
141
142
finally
143
running := false;
0 commit comments