[C++-sig] Re: Re: boost: python may cause memory leaks?

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Wed Dec 24 14:00:22 CET 2003


--- Leo Yee <surffirst at yahoo.com> wrote:
> You are right. This seems caused by using
> 
>  if (PyImport_AppendInittab("hello", inithello) == -1)
>         return 1;
> 
> before
>     Py_Initialize();
> 
> However, I can't find a solution to this problem. There is no documentation
> telling me how to remove these memeory leaks.

Have you tried it the "normal" way, i.e. Py_Initialize() first and then
PyImport_ImportModule()? And without calling Py_Finalize()?


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/




More information about the Cplusplus-sig mailing list