Re: Py_DECREF/Py_INCREF as Functions?
En Fri, 30 Mar 2007 20:21:53 -0300, Kevin D.Smith <Kevin.Smith@xxxxxxx>
escribió:
I'm trying to use Python from another application that allows me to
load functions from a DLL. While I have most of the API working, I
have one big problem: Py_DECREF and PyINCREF are macros which I can't
load from the Python DLL. Since I can't decref any objects, I'm
leaking memory all over the place. Is there any way to decref an
object with a function that can be loaded from the Python DLL?
Yes. Usually the macro has an ALLCAPS name and the function a TitleCase
name. See Py_IncRef and Py_DecRef in object.c
--
Gabriel Genellina
.
Relevant Pages
- Py_DECREF/Py_INCREF as Functions?
... I'm trying to use Python from another application that allows me to load functions from a DLL. ... While I have most of the API working, I have one big problem: Py_DECREF and PyINCREF are macros which I can't load from the Python DLL. ... Is there any way to decref an object with a function that can be loaded from the Python DLL? ... (comp.lang.python) - Re: Why must I click in document to force Word status bar to reset after running macros?
... >I have several toolbar macros located in a Word 2003 global template. ... >macros call a COM DLL to launch specific document templates with automation. ... >status bar to reset so the page number, etc. appears (status bar is blank ... (microsoft.public.word.customization.menustoolbars) - Setting correct application focus when calling VB DLL from Word?
... I have several toolbar macros located in a Word 2003 global template. ... macros call a COM DLL to launch specific document templates with automation. ... (microsoft.public.office.developer.automation) - Why must I click in document to force Word status bar to reset after running macros?
... I have several toolbar macros located in a Word 2003 global template. ... macros call a COM DLL to launch specific document templates with automation. ... (microsoft.public.word.customization.menustoolbars) - Re: migration to non-attributed(!) ATL?
... it injects full C++ code rather than the ATL ... Have the old attributed dll import/load the new dll ... >> attributed project into the new project’s IDL file ... >> from attributes to macros? ... (microsoft.public.vc.atl) |
|