Python/C - Memory-Management
Michael Hudson
mwh at python.net
Thu Mar 7 05:39:07 EST 2002
heiko.wolf at dlr.de (Heiko Wolf) writes:
> Hi there,
>
> I've got some C-functions that shall be adressed from Python. Thats no
> problem, thanks to SWIG.
>
> But now there is a problem about the memory management: One of the
> C-functions allocates memory for all the other functions. In C it
> works that way:
[snip]
> If another function calls init_mem, it can use memory until free_mem
> is called... I want to do the same now in Python, but it seems as if
> the static memory isnt kept somewhere? When I try accessing it, I
> get a Segmentation Fault... Any suggestions?
No. More details?
Cheers,
M.
--
> so python will fork if activestate starts polluting it?
I find it more relevant to speculate on whether Python would fork
if the merpeople start invading our cities riding on the backs of
giant king crabs. -- Brian Quinlan, comp.lang.python
More information about the Python-list
mailing list