18,356
社区成员
发帖
与我相关
我的任务
分享
inline long Recordset15::GetRecordCount ( ) {
long _result = 0;
HRESULT _hr = get_RecordCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
还是这个地方,hr=E_FAIL,_result=-1inline long Recordset15::GetRecordCount ( ) {
long _result = 0;
HRESULT _hr = get_RecordCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
返回值_hr有时候会变成failed就抛出了异常。刚把线程改成了3,虽然还是会挂,但是延迟直接变成了300+ms