May 9, 2011 at 6:13 AM
Edited May 9, 2011 at 6:14 AM
Find a bug maybe, wish to be fixed next version:
first VisualLeakDetector's destructor is called so every member of VisualLeakDetector is invalid now (but not set to NULL)
then VisualLeakDetector::_HeapFree is called from ole32.dll (do not know the reason, may be there is some hook not cleared?)
in VisualLeakDetector::_HeapFree, vld.unmapblock is called. As there is no detection for this situation(vld object destructed), the function crashed because m_heapmap is already an invalid pointer.
In XP SP2 & Visual Studio 2005