CInternetSession mSession("My Session");
CHttpConnection* mServer = NULL;
CHttpFile* mFile = NULL;mServer = mSession.GetHttpConnection(Server, port);
mFile = mServer->OpenRequest(CHttpConnection::HTTP_VERB_GET,...);//...QueryInfo...正常delete mFile; //运行时报错delete mServer; //运行时报错mSession.Close(); //运行时报错
我跟踪进去,发现报错的语句都是一样的,在<inet.cpp>中,
void CInternetFile::Close()
{
     if (m_hFile != NULL)
     {
...
_afxSessionMap.RemoveKey(m_hFile);//这个方法会出错
     }
}Unhandled exception at 0x7c1ad4b4 (mfc80d.dll) in MyApp.exe: 0xC0000005: Access violation reading location 0x374b436c.
不知道谁遇到过这个问题,能否指点一二.