Skip to content

Conversation

@geppi
Copy link
Collaborator

@geppi geppi commented Oct 21, 2024

when accessing a COM Record field.

It looks like the culprit is calling PyWinObject_FreeWCHAR() while not holding the GIL.

The fix is moving the call to PyWinObject_FreeWCHAR() outside of the PY_INTERFACE_PRECALL / PY_INTERFACE_POSTCALL block to reacquire the GIL before the call.

This pull request resolves issue #2415

@geppi
Copy link
Collaborator Author

geppi commented Dec 12, 2024

A humble question: Will this PR make it into the next release and is there a schedule for this?

Currently COM Records do not work with Python 3.12 and the pywin32 release available on PyPi.

Copy link
Owner

@mhammond mhammond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, this looks good! I'm not sure when the next release will be yet.

@mhammond mhammond merged commit b19e86b into mhammond:main Dec 12, 2024
28 checks passed
@geppi geppi deleted the python312_record_fix branch December 13, 2024 13:06
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.

2 participants