We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ecd15c commit 41e9fa3Copy full SHA for 41e9fa3
src/runtime/importhook.cs
@@ -75,7 +75,10 @@ internal static void Shutdown()
75
if (Runtime.Py_IsInitialized() != 0)
76
{
77
Runtime.XDecref(py_clr_module);
78
+ // TODO: Very strange behavior under CoreCLR. System.ExecutionEngineException (Crash)
79
+#if !NETCOREAPP
80
Runtime.XDecref(root.pyHandle);
81
+#endif
82
Runtime.XDecref(py_import);
83
}
84
0 commit comments