Re: [Boost-users] [Boost.Test] workaround for reported memory leaks when using MFC?
Unfortunately, when the MFC dll gets unloaded prior to shutdown it invokes the CRT's memory leak detection routine which falsely reports that any memory allocated by the (yet to be unloaded) unit test framework has been leaked. Obviously, the problem here is with MFC and searching the 'net will yield numerous complaints on the topic.
we have the same problem with our normal app. The leak is reported due to a destructor call of a global object. One way to tweak the reporting, is to extend the lifetime of the global object. This can be done by explicitly linking the main application with mfc (on vc++ 7.1: project properties, linker, input, additional properties mfc71d.lib). Make sure to force a relinking / rebuild after setting this. Not sure if this helps for u.
participants (1)
-
gast128