471,351 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,351 software developers and data experts.

2.3.2 Memory Leaks ?

Hi,
I am building with VS 6.0 under WinXP, and building with the default
python configuration & settings. I build a test python app with just
the following code:
/* testing for memory leaks */
long tmp_flag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG );
tmp_flag |= _CRTDBG_LEAK_CHECK_DF;
_CrtSetDbgFlag( tmp_flag );

Py_Initialize();
Py_Finalize();
For some reason I am seeing a *bunch* of memory leaks. Does anyone
know what the problem could be?
Jul 18 '05 #1
1 1380
ge****@yahoo.com (Robert) writes:
Hi,
I am building with VS 6.0 under WinXP, and building with the default
python configuration & settings. I build a test python app with just
the following code:
/* testing for memory leaks */
long tmp_flag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG );
tmp_flag |= _CRTDBG_LEAK_CHECK_DF;
_CrtSetDbgFlag( tmp_flag );

Py_Initialize();
Py_Finalize();
For some reason I am seeing a *bunch* of memory leaks. Does anyone
know what the problem could be?


There are various objects (interned strings being an example) that do
not get deallocated before shutdown, but calling them "leaks" seems a
bit of a stretch. Are they causing you problems?

Cheers,
mwh

--
SCSI is not magic. There are fundamental technical reasons why it
is necessary to sacrifice a young goat to your SCSI chain now and
then. -- John Woods
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Maurice | last post: by
reply views Thread by Steve Binney | last post: by
4 posts views Thread by Morten Aune Lyrstad | last post: by
2 posts views Thread by Generic Usenet Account | last post: by
8 posts views Thread by ranjeet.gupta | last post: by
4 posts views Thread by ali.jan | last post: by
23 posts views Thread by James | last post: by
3 posts views Thread by Jim Land | last post: by
16 posts views Thread by graham.keellings | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.