[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[])
	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>

More information about the New-bugs-announce mailing list