Memory leaks

Steven L. Kille killes at geneseo.net
Sat Jun 26 08:21:19 EDT 1999


I'm embedding python in an MFC application.  When I close the application I
get a bunch memory leak messages (16).  Im sure this is just memory
allocated on startup and does not accumulate during the execution of my
program so it's not big deal.  It's just kind of annoying, especially if
your looking for memory leaks in your own program.  Does anyone know of any
other function I need to call other than Py_Finalize() when closing down my
app?  If I just place the following two lines in my InitInstance() function
I get the memory leak messages:

BOOL CFormulasApp::InitInstance()
{

  Py_Initialize();
  Py_Finalize();
return FALSE;
}










More information about the Python-list mailing list