memory leakage detection

David Rushby woodsplitter at rocketmail.com
Tue Oct 28 14:31:31 EST 2003


"Haigu" <haigu at haigu.net> wrote in message news:<bni732$6tf$1 at mail.cn99.com>...
> Hi here,
>     I'm writting a project with python embedded in C++. Since there are too
> much C++ code, I'm not sure of getting the reference countings correct, nor
> of the existence of circular references. So is there any way to detect
> memory leaks in python???

Take a look at the Misc/SpecialBuilds.txt file in the Python source
distribution, especially the section about COUNT_ALLOCS.

Also:
  http://mail.python.org/pipermail/python-dev/2003-August/037664.html
  http://mail.python.org/pipermail/doc-sig/2001-July/001951.html




More information about the Python-list mailing list