Skip to content

Python4Delphi demo33 (multithread) does not work #373

@denpoon

Description

@denpoon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions