memory leakage detection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Haigu

    memory leakage detection

    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???


  • David Rushby

    #2
    Re: memory leakage detection

    "Haigu" <haigu@haigu.ne t> wrote in message news:<bni732$6t f$1@mail.cn99.c om>...[color=blue]
    > 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???[/color]

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

    Also:


    Comment

    Working...