New submission from nqiang <[email protected]>:
The following code will cause memory leak in debug mode using visual
studio 2008/2005
Comment out either MFC related (CString s) or Python related PY_XX.
Then there will be no memory leak.
#include <python.h>
#include <afx.h>
int _tmain(int argc, _TCHAR* argv[])
{
Py_Initialize();
Py_Finalize();
CString s;
return 0;
}
----------
messages: 79375
nosy: nqiang
severity: normal
status: open
title: Python will not co-exist with MFC (memory leak)
type: resource usage
versions: Python 2.5, Python 2.6, Python 3.0
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue4872>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com