[C++-sig] Re: MSVC 7.1 Multithreaded Dll Memory Leak [long post]

Raoul Gough raoulgough at yahoo.co.uk
Fri Mar 26 13:39:45 CET 2004


Paul Grenyer paul at paulgrenyer.co.uk 
Fri Mar 26 03:55:15 EST 2004 :

[snippage]
>However, all of our boost python extensions (I didn't write the stuff 
>and I'm not sure of the right terminology. I mean C++ code wrapped in 
>boost python to expose it to python) failed with unknown C++ errors or

>something similar. I suspect this is due to the fact that they are
>Dlls and therefore presumably need the Dll runtime.

I've never heard of an "unknown C++ error" - how about posting some
more information (compiler, build options, actual error messages :-)

>Dave, is this memory leak a recognised problem? Is anything being done

>to fix it? As the problem is in function.hpp is it worth posting about

>it to the main boost list?

Not sure how this relates to multi-threaded builds, but there is a
known leak related to Py_Finalize and the boost Python library:

http://mail.python.org/pipermail/c++-sig/2003-December/006511.html

"The problem is that Boost.Python hangs on to
some Python references even after Py_Finalize is called.  When the
application exits, those reference counts are decremented, even
though there's no interpreter running."

Regards,
Raoul Gough.


	
	
		
___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html




More information about the Cplusplus-sig mailing list