首先定义了一个下面的对象
CTypedPtrArray<CPtrArray, CVecor *>m_vectorList;//所有的矢量内容
CVecor m_vector;
m_vectorList.Add(&m_vector);//将矢量块入库
class CVecor  
{CString symName;//符号名称}
在下面的应用中出了问题
int CGeoLayer::GetVectorIndex(CString str,int nTy)
{
int vsize=m_plData->m_vectorList.GetSize();
CString cName;
int type;
for(int i=0;i<vsize;i++)
{
----here cName=m_plData->m_vectorList.GetAt(i)->symName;
if(str.Compare(cName)==0 && nTy==type)
return i;
}
return -1;
}
const CString& CString::operator=(const CString& stringSrc)
{
if (m_pchData != stringSrc.m_pchData)
{
if ((GetData()->nRefs < 0 && GetData() != _afxDataNil) ||
----调试到此处 stringSrc.GetData()->nRefs < 0)
{
// actual copy necessary since one of the strings is locked
AssignCopy(stringSrc.GetData()->nDataLength, stringSrc.m_pchData);
}请问高手,是什么原因啊!?