
3 Apr
2009
3 Apr
'09
9:18 a.m.
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.