Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy