|
Boost Users : |
Subject: Re: [Boost-users] [Q] eliminating false memory leak reports
From: gast128 (gast128_at_[hidden])
Date: 2009-04-03 05:18:51
Hello vsp,
The memory leak reported is probably because the static is detroyed after m$
standard dump kick in. Especially when linking against MFC, the dump may be
forced to early which gives a lot of false positives in static objects. The
trick is here to force MFc to link as early as possible, so that its static
objects are destroyed as late asap.
Further on shared_ptr's can still give memory leak, especially when creating
cycles of shared_ptrs, but this seems not the case in your example.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net