activex plugin causes claim destroy concentration exit vs2008


my mfc concentration controlling "esri mapobjects lt2" activex plugin throws an claim during me shutting it.
the blunder occurs cmdtarg.cpp:



ccmdtarget::~ccmdtarget()
{
#ifndef _afx_no_ole_support
(m_xdispatch.m_vtbl != 0)
((coledispatchimpl*)&m_xdispatch)->disconnect();
assert(m_dwref <= 1); //<--- fails since m_dwref 3
#endif
m_pmodulestate = null;
}


i built (native c++) concentration vc9.
when i accumulate concentration vc6, behaves nicely.



what reason this?



Comments