Re: Memory leak when using a C++ module for Python

2008-12-16 Thread Jaume Bonet
When I tried the C++ function with a C++ main() (skipping the Python part) it didn't show any memory problem, but I'll re-check it anyway, thanks... On Dec 16, 9:16 am, "Gabriel Genellina" wrote: > En Thu, 11 Dec 2008 15:35:58 -0200, Jaume Bonet   > escribió: > >

Re: Memory leak when using a C++ module for Python

2008-12-11 Thread Jaume Bonet
Sure, sorry... This is the function that is visible from python and the one that the python code calls: static PyObject * IMFind (PyObject *self, PyObject *args, PyObject *kwargs) { //Array for the detection of the parameters coming from Python static char *kwlist[] = {"shareInt"

Memory leak when using a C++ module for Python

2008-12-10 Thread Jaume Bonet
Hi, I'm pretty new in python programming. I've been developing a C++ module for a python application that simply gets the information from python, makes the last processing (which is very time consuming -that's why I make it in C++-). When I test the code from C++ each time I delete a vector the