hi, all
I develop an project about Email issue.
When I look message on Inbox Folder.
If the message only is download partialy.
I want to set a REMOTE DOWN flag, ant sync mail to continue until whole
message
be download.
But When I set REMOTEDOWN FLAG, I always get exception and quit my
application.
Please help me:
My source:(IMesssage* m_pMessage)
BOOL CMAPIMessage::SetDownLoadNext()
{
TRY
{
CLogger::Record(_T("(Warning) CMAPIMessage::SetDownLoadNext: "));
SPropValue prop[1] = {0};
prop[0].ulPropTag = PR_MSG_STATUS;
prop[0].Value.ul = MSGSTATUS_REMOTE_DOWNLOAD;
HRESULT hr = m_pMessage->SetProps(1,prop,NULL);
CLogger::Record(_T("(Warning) CMAPIMessage::SetDownLoadNext: "));
if (FAILED(hr))
{
CString strError;
strError.Format(L"%X.",hr);
CLogger::Record(_T("(Warning) CMAPIMessage::SetDownLoadNext: ") +
strError);
return false;
}
}CATCH_ALL(e)
{
TCHAR szError[256];
e->GetErrorMessage(szError,256);
CString strError = szError;
CLogger::Record(L"(*Error*) Synchronizing service exception: " + strError);
return false;
}
END_CATCH_ALL
return true;
}
I can not catch the Exception:
Exception Code: 0xc0000005
ExceptionAddress:0x03ab1ce0
Reading:0x2be6a11c
Thanks