[Python.NET] Re: multiprocessing in Python.Runtime

2025-05-05 Thread Nikhil Garg via Python.NET
Hi, If you are on windows, I recall that we can’t use multiprocessing inside a function, it should be in the main body of code or after if ‘__name__’ == ‘__main__’ block. Also, it is necessary to ensure that the function being used with multiprocessing can be pickled, if it cant be multiprocessin

[Python.NET] multiprocessing in Python.Runtime

2025-05-05 Thread Ran Waidman via Python.NET
Hi, I am using Python.Runtime in C#, I would like to call 1 function from my script, this function must work in multip process. when I call it, it looks like that the sw keep opening new processes forever till my computer has to be restarted it is like a virus, my python code: import math impor

[Python.NET] Re: Multithreading/multiprocessing

2025-05-05 Thread Ran Waidman via Python.NET
did u find a solution to multiprocess issue? I am running the multiprocessing.Pool in my script, and when it runs from python, it opens huge amount of processes till my computer is dead ___ Python.NET mailing list -- [email protected] To unsubscribe s