8000 Netcoreapp 2.0 specific bugfix. · pythonnet/pythonnet@41e9fa3 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 41e9fa3

Browse files
author
dse
committed
Netcoreapp 2.0 specific bugfix.
1 parent 3ecd15c commit 41e9fa3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/runtime/importhook.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ internal static void Shutdown()
7575
if (Runtime.Py_IsInitialized() != 0)
7676
{
7777
Runtime.XDecref(py_clr_module);
78+
// TODO: Very strange behavior under CoreCLR. System.ExecutionEngineException (Crash)
79+
#if !NETCOREAPP
7880
Runtime.XDecref(root.pyHandle);
81+
#endif
7982
Runtime.XDecref(py_import);
8083
}
8184
}

0 commit comments

Comments
 (0)
0