在调试XML过程中,会变得很慢,不知道何故,高手们紧急救援一下!
在debug 调试过程中
CXml xmlModObj;
////获取选中通道时序列表
((CFrontCollectApp*)AfxGetApp())->GetCurrentPath(czPath);
strcat(czPath,"xml\\ModuleConfig.xml");
CString szGatherPath(czPath);
BOOL bRet = xmlModObj.Open(szGatherPath);
if( bRet )
{
CString strMsg;
CString szNodePath;
szNodePath.Format("//ModuleConfig/Sequence_Config[@Chnl_No=%s]",szChanNo);
CXmlNode node = xmlModObj.SelectSingleNode(_T(szNodePath));
当过了上面标志的那一句后,就变得相当的慢了
但是呢,不调试,直接运行,又没有问题,不知道是什么原因?