Py_Finalize

Discussion in 'Python' started by Pablo Yabo, Feb 20, 2004.

  1. Pablo Yabo

    Pablo Yabo Guest

    Hi,
    I embeded Python in a C++ application to support some scripts. I start it
    using Py_Initialize() and after using running the scripts I call
    Py_Finalize(). The problem that I experienced is that the memory usage of
    the process doesn't decrease after the Py_Finalize().
    If I call again Py_Initialize() and then load some modules, the memory usage
    increase, but it never decrease when calling Py_Finalize().
    How can I do a complete cleanup of the python heap?

    Thanks on advanced,

    Pablo Yabo
     
    Pablo Yabo, Feb 20, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kari Hallfast
    Replies:
    2
    Views:
    453
    Harri Pesonen
    Oct 23, 2003
  2. Roman Suzi
    Replies:
    0
    Views:
    447
    Roman Suzi
    Jan 8, 2005
  3. Roman Suzi
    Replies:
    0
    Views:
    381
    Roman Suzi
    Jan 10, 2005
  4. Andrew Trevorrow
    Replies:
    0
    Views:
    456
    Andrew Trevorrow
    Mar 7, 2006
  5. zaley

    Py_Finalize ERROR!

    zaley, Feb 19, 2008, in forum: Python
    Replies:
    2
    Views:
    781
    Gabriel Genellina
    Feb 19, 2008
Loading...

Share This Page