Jump to content
Sign in to follow this  
DennisTW

Python4Delphi demo33 (multithread) does not work

Recommended Posts

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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×