class CRequest : public CObject
{
public:
int StuffString( const CString& strData );
void StuffHead(CString method, CString lpszURL);
CRequest();
virtual ~CRequest();
CByteArray m_buf;
CString m_strLine;
int m_cbOut;
};
.........................
CRequest::CRequest()
{
m_buf.SetSize( 1024 );
m_cbOut = 0;
}
CRequest::~CRequest()
{
}
.........................
.........................
CRequest* m_pReq;
if (m_pReq != NULL)
{
m_pReq->m_cbOut=0; //發聲訪問沖突
}
這裡 m_pReq->m_cbOut=0; //發聲訪問沖突
m_pReq雖然不是null但是指向無效的地址,比如指針沒有初始化或者被釋放。