try
    {
        pServer = session.GetHttpConnection(ServerName,nPort);
        //pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_POST,"test.asp?s1=s1&s2=s2",NULL,1,NULL,NULL,INTERNET_FLAG_EXISTING_CONNECT);
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_POST,"propuse.aspx?topic_id=626868&type=list",NULL,1,NULL,NULL,INTERNET_FLAG_EXISTING_CONNECT);
        pFile -> AddRequestHeaders("Content-Type: application/x-www-form-urlencoded");
        pFile -> AddRequestHeaders("Accept: */*");
        pFile -> SendRequest(NULL,0,outBuff,strlen(outBuff));
        pFile -> QueryInfoStatusCode(retcode);
        for(int i=0;i>=0;i++)
        {
CString smsg;
if(!(pFile->ReadString(smsg)))
break;
m_Result+=smsg;
m_Result+="\r\n";        }
pFile->Close();
pServer->Close();
    }
    catch (CInternetException * e)
{
AfxMessageBox("an error occur!");
};
    delete pFile;
    delete pServer;
    session.Close();
UpdateData(FALSE);

}
上述代码是动态
库中
的一段代码,在出现连接异常的时候例如连接不上等问题的时候,系统出现非法操作,但是做成可执行文件时一点没有问题,是不是,动态库不允许扑捉异常。
请问是什么原因?谢谢