ado.exe 中的 0x7c812afb 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0012efe0 处的 _com_error。
ado.exe 中的 0x7c812afb 处有未经处理的异常: Microsoft C++ 异常: 内存位置 0x0012efe0 处的 _com_error。
ado.exe 中的 0x004164f4 处最可能的异常: 0xC0000005: 读取位置 0x00000000 时发生访问冲突
ado.exe 中的 0x004164f4 处有未经处理的异常: 0xC0000005: 读取位置 0x00000000 时发生访问冲突
第一个中断:
Interface* operator->() const
{
if (m_pInterface == NULL) {
_com_issue_error(E_POINTER);
}
return m_pInterface; // 断点1出现在这
}
第2个中断:
inline HRESULT Recordset15::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) {
HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options);
//第2个断点
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
就这两个地方的问题,不明白是什么问题。望高手指教啊!
中断调试,会停在一个函数那,但我知道什么意思。我把那段代码贴出来,你帮看看?
Interface* operator->() const
{
if (m_pInterface == NULL) {
_com_issue_error(E_POINTER);
}
return m_pInterface; // 断点1出现在这
}