the sample code:
VARIANT v;
long pos = 0;
LPSAFEARRAY pSA = SafeArrayCreateVector(VT_VARIANT, 0, 1);
_variant_t var(_bstr_t("deinterlace-mode=mode"));
SafeArrayPutElement(pSA, &pos, (void FAR *)&var);
v.parray = pSA;
v.vt = VT_ARRAY;
m_VLCControl.put_Visible(TRUE);
m_VLCControl.addTarget("
http://people.videolan.org/~dionoea/vlc-plugin- demo/streams/sw_3M.mov", v, CVlcplugin1::VLCPlayListInsertAndGo,
10);
m_VLCControl.put_Position(0);
m_VLCControl.put_Time(0);
m_VLCControl.put_AutoPlay(TRUE);
m_VLCControl.play();
but when program exits, the error happen:"Debug Assertion Failed"
the assertion is:
CCmdTarget::~CCmdTarget()
{
#ifndef _AFX_NO_OLE_SUPPORT
if (m_xDispatch.m_vtbl != 0)
((COleDispatchImpl*)&m_xDispatch)->Disconnect();
ASSERT(m_dwRef <= 1);
#endif
m_pModuleState = NULL;
}
I dont know how to solve it