-
Notifications
You must be signed in to change notification settings - Fork 287
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
Script Shutdown() doesn't stop running python script #1312
Comments
Shutdown doesn't actually stop a running script as far as I can tell all it does is some cleanup. Here's a comment I found about it on the old mailing list (https://mail.python.org/pipermail/ironpython-users/2014-March/016895.html):
|
Okay - Thread.Abort gives me shivers but I'll work with that. Thanks again |
Thread.Abort() is obsolete and does not work with .net8 at all. What other option do we have to stop a running script from another thread in c#? |
Description
The Python script is running a loop in a thread. The runtime.Shutdown() should stop the running python script. It does not.
Steps to Reproduce
This example will demonstrate how the python script contains a loop in a thread. A button to stop the running script by calling Shutdown() is not doing anything.
Expected behavior:
The running python script should stop
Actual behavior:
The running python script does not stop
Versions
3.4.0-alpha1 for .Net Framework 4.7.2 from nuget
The text was updated successfully, but these errors were encountered: