[New-bugs-announce] [issue4872] Python will not co-exist with MFC (memory leak)
nqiang
report at bugs.python.org
Wed Jan 7 22:55:32 CET 2009
New submission from nqiang <NQIANG at WMAINC.COM>:
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 <report at bugs.python.org>
<http://bugs.python.org/issue4872>
_______________________________________
More information about the New-bugs-announce
mailing list