Message79375
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;
} |
|
Date |
User |
Action |
Args |
2009-01-07 21:55:32 | nqiang | set | recipients:
+ nqiang |
2009-01-07 21:55:32 | nqiang | set | messageid: <1231365332.46.0.804752973069.issue4872@psf.upfronthosting.co.za> |
2009-01-07 21:55:31 | nqiang | link | issue4872 messages |
2009-01-07 21:55:29 | nqiang | create | |
|