Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Drop LoadLibrary#880

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
amos402 wants to merge14 commits intopythonnet:masterfromamos402:drop-dlopen
Closed
Changes from1 commit
Commits
Show all changes
14 commits
Select commitHold shift + click to select a range
d1928dc
Drop LoadLibrary dependency
amos402Jun 13, 2019
f000e08
Explain for getting _PyObject_NextNotImplemented
amos402Jun 13, 2019
f882400
Update changelog and authors
amos402Jun 13, 2019
b7715ee
Merge branch 'master' into drop-dlopen
filmorJun 20, 2019
41ac665
Merge remote-tracking branch 'remotes/upstream/master' into drop-dlopen
amos402Jul 1, 2019
c6dae9e
Merge branch 'master' into drop-dlopen
amos402Jul 5, 2019
653a263
Merge branch 'master' into drop-dlopen
amos402Dec 1, 2019
b3e889b
* Load PyModuleType without LibraryLoader
amos402Dec 1, 2019
04d6dfb
Merge remote-tracking branch 'remotes/upstream/master' into drop-dlop…
amos402Dec 14, 2019
5150e61
Prevent exception override
amos402Dec 14, 2019
65e209e
Rollback symbol loading for __Internal
amos402Dec 15, 2019
431d644
Merge branch 'master' into drop-dlopen
amos402Feb 12, 2020
2b84394
* Fix refcnt error
amos402Feb 12, 2020
b7797d3
Merge 'master' into drop-dlopen
amos402Feb 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Rollback symbol loading for __Internal
  • Loading branch information
@amos402
amos402 committedDec 15, 2019
commit65e209e00d76a39007b86b4a3c825ab1e38a1d2c
19 changes: 11 additions & 8 deletionssrc/runtime/runtime.cs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1946,15 +1946,15 @@ internal static IntPtr PyMem_Realloc(IntPtr ptr, long size)

internal static void SetNoSiteFlag()
{
if (_PythonDll == "__Internal")
{
throw new NotSupportedException("SetNoSiteFlag didn't support on static compile");
}
var loader = LibraryLoader.Get(OperatingSystem);
IntPtr dllLocal = loader.Load(_PythonDll);
if (dllLocal == IntPtr.Zero)
IntPtr dllLocal;
if (_PythonDll != "__Internal")
{
throw new Exception($"Cannot load {_PythonDll}");
dllLocal = loader.Load(_PythonDll);
if (dllLocal == IntPtr.Zero)
{
throw new Exception($"Cannot load {_PythonDll}");
}
}
try
{
Expand All@@ -1963,7 +1963,10 @@ internal static void SetNoSiteFlag()
}
finally
{
loader.Free(dllLocal);
if (dllLocal != IntPtr.Zero)
{
loader.Free(dllLocal);
}
}
}
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp