提交的页面超过一定长度就无法提交,
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET,
strObject, NULL, (DWORD)this, NULL, NULL, dwHttpRequestFlags);
执行到这一句报如下错:
ASSERT_VALID fails with NULL pointer.
Assertion Failed: HTTPS: File inet.cpp, Line 2018
怎么办呢,URL有限制长度的??
ASSERT_VALID fails with NULL pointer.
Assertion Failed: HTTPS: File inet.cpp, Line 2018
-------------------
打开inet.cpp看看2018行指向什么地方 某些参数非法
void AFXAPI AfxAssertValidObject(const CObject* pOb,
LPCSTR lpszFileName, int nLine)
{
if (pOb == NULL)
{
TRACE0("ASSERT_VALID fails with NULL pointer.\n");
if (AfxAssertFailedLine(lpszFileName, nLine))
AfxDebugBreak();//指向这里
return; // quick escape
}
if (!AfxIsValidAddress(pOb, sizeof(CObject)))
{
TRACE0("ASSERT_VALID fails with illegal pointer.\n");
if (AfxAssertFailedLine(lpszFileName, nLine))
AfxDebugBreak();
return; // quick escape
}