When I am resizing my vector in COM like in the below code.
m_vecDBInfo[iDb].bmsDim.resize( sDimCount);//added by ds
It internally routing to vector class of mfc(c:\program files (x86)\microsoft visual studio 8\vc\include\ve ctor) while debugging like in the below code.
_Ty _Tmp = _Val; // in case _Val is in sequence
where _val is my vector.
so here after executing the above statement i can see Bat Ptr for the elements of vector like
_Tmp = {m_strLen=0 m_bstr=0x002c68 88cccccccc <Bad Ptr> m_count=0 ...}
m_strLen = 0
m_bstr = 0x002c6888ccccc ccc <Bad Ptr>
m_count = 0
m_pBits = 0xcccccccc00000 000 <Bad Ptr>
where m_strLen ,m_bstr(of type BSTR),m_count ,m_pBits(of type unsigned char*) are elements of vector .
Can Any one pls guide me why it says "Bad Ptr" for the element m_bstr and m_pBits ?
m_vecDBInfo[iDb].bmsDim.resize( sDimCount);//added by ds
It internally routing to vector class of mfc(c:\program files (x86)\microsoft visual studio 8\vc\include\ve ctor) while debugging like in the below code.
_Ty _Tmp = _Val; // in case _Val is in sequence
where _val is my vector.
so here after executing the above statement i can see Bat Ptr for the elements of vector like
_Tmp = {m_strLen=0 m_bstr=0x002c68 88cccccccc <Bad Ptr> m_count=0 ...}
m_strLen = 0
m_bstr = 0x002c6888ccccc ccc <Bad Ptr>
m_count = 0
m_pBits = 0xcccccccc00000 000 <Bad Ptr>
where m_strLen ,m_bstr(of type BSTR),m_count ,m_pBits(of type unsigned char*) are elements of vector .
Can Any one pls guide me why it says "Bad Ptr" for the element m_bstr and m_pBits ?
Comment