Skip to content
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

Make methods of PyObject inherited from its base .NET classes GIL-safe #1711

Merged
merged 1 commit into from Mar 4, 2022

Conversation

lostmsu
Copy link
Member

@lostmsu lostmsu commented Mar 3, 2022

What does this implement/fix? Explain your changes.

passing Python objects to unsuspecting .NET methods, that accept object would lead to crash if those methods try to use standard .NET System.Object members without acquiring the Python GIL first.

Does this close any currently open issues?

fixes #1642

Checklist

Check all those that are applicable and complete.

@lostmsu lostmsu merged commit eec30c0 into pythonnet:master Mar 4, 2022
@lostmsu lostmsu deleted the PyObjectGil branch March 4, 2022 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using String.Format crashes inside pythonnet
2 participants