Skip to content

Fix for issue #2415: Python 3.12.7 interpreter crashes#2417

Merged
mhammond merged 1 commit intomhammond:mainfrom
geppi:python312_record_fix
Dec 12, 2024
Merged

Fix for issue #2415: Python 3.12.7 interpreter crashes#2417
mhammond merged 1 commit intomhammond:mainfrom
geppi:python312_record_fix

Conversation

@geppi
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

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