[C++-sig] memory leaks using the

Kevin Jones investtcartier at yahoo.com
Thu Sep 14 23:09:19 CEST 2006


Stefan Seefeld <seefeld <at> sympatico.ca> writes:

> 
> Kevin Jones wrote:
> > Hi,
> > 
> > I am using the manage_new_object return policy to wrap
> > "newed" C++ object in an effort to conserve memory.
> > 
> > Even though I am deleting the returned object in
> > Python and invoking the Python garbage collector I
> > still have a leak.
> 
> The obvious question: Are you sure your C++ objects are
> not deleted, while the python (wrapper) objects are ?
> 
> Regards,
> 		Stefan
> 

Stefan,

In the python code I do the following:

    del x
    gc.collect()
    msvcrt.heapmin()    

I'm not sure what I could do beyond the above.






More information about the Cplusplus-sig mailing list