I've got DEBUG ASSERT error on line 122 of afx.inl
where the code is :
_AFX_INLINE CStringData* CString::GetData() const
{ ASSERT(m_pchData != NULL); return ((CStringData*)
m_pchData)-1; }
The error was casued because m_pchData was NULL int "ASSERT
(m_pchData != NULL)"
However, this function CString::GetData() was called by the
sentence "m_pData[nIndex] = newElement;" in the following function
whose the code is
_AFXCOLL_INLINE void CStringArray::SetAt(int nIndex, const CString&
newElement)
{ ASSERT(nIndex >= 0 && nIndex < m_nSize);
m_pData[nIndex] = newElement; }
I found that, at the moment of error, the nIndex was 16681824 and
m_nSize was 16673440 in "ASSERT(nIndex >= 0 && nIndex < m_nSize)",
which means nIndex is bigger than m_nSize and it passed the ASSERT
then the next sentence was run to give error.
This error happens during the DEBUG mode of run and it I change it
to RELEASE, no error occurs.
To give more detail, I have five synchronized AVI files(V1, V2, V3,
V4) and I have to extract synchronized frames from each video at the
same time to apply image processing. V2, V3 and V4 have the same
width and height while V1 has smaller size(captured from different
camcorder). The error occurs when I call "GetBitmapBits" function
of directshow to caputure a frame of V1.
To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/