Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python4Delphi demo33 (multithread) does not work #373

Closed
denpoon opened this issue Jul 29, 2022 · 0 comments
Closed

Python4Delphi demo33 (multithread) does not work #373

denpoon opened this issue Jul 29, 2022 · 0 comments

Comments

@denpoon
Copy link

denpoon commented Jul 29, 2022

Python4Delphi demo33 (the multi-thread example) (https://blogs.embarcadero.com/learn-how-to-stop-a-thread-inside-python-in-a-delphi-windows-app/) is not working under Delphi 11.1 and Python 3.10.5 (64-bit). When debugged, the function TThreadSortForm.SortModule_GetValue( pself, args : PPyObject ) : PPyObject; cdecl;
throws the exception : "OverflowError: Python int too large to convert to C long".
I don't understand why as the values of arrays are very small ( below 170).



Please help. I need to call Python in multithread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant