This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Zuzu_Typ
Recipients Zuzu_Typ
Date 2018-05-02.06:39:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525243145.23.0.682650639539.issue33406@psf.upfronthosting.co.za>
In-reply-to
Content
It should be considered to increase the refcount of functions that are passed on to an external library at some point.

If this is not done and e.g. the function was a local variable, when leaving the scope it gets garbage-collected. When the library now tries to execute said function, an access violation occurs.

So if the refcount were increased either upon creating the CFUNCTYPE instance or when it's passed on, this could be avoided.
History
Date User Action Args
2018-05-02 06:39:05Zuzu_Typsetrecipients: + Zuzu_Typ
2018-05-02 06:39:05Zuzu_Typsetmessageid: <1525243145.23.0.682650639539.issue33406@psf.upfronthosting.co.za>
2018-05-02 06:39:05Zuzu_Typlinkissue33406 messages
2018-05-02 06:39:05Zuzu_Typcreate