Network I/O error

 
for (int Idex = 0; zdIdex < lst.Count; Idex++)
{
string str = lst[Idex];

IQueryFilter pfilter = new QueryFilterClass();
string aClause = string.Format("zdtybm='{0}'", str);
string bClause = string.Format(" and ( lifecycle='{0}'", '0');
string cClause = string.Format(" or lifecycle is null)");
pfilter.WhereClause = aClause + bClause + cClause;


int count = sourceTable.RowCount(pfilter);
ICursor pcursor = sourceTable.Search(pfilter, false);
if (count > 0)
{
sdeDatasetList.Clear();
IRow pfe = pcursor.NextRow(); // 这句出现了错误
while (pfe != null)
{
sdeDatasetList.Add(pfe);
pfe = pcursor.NextRow();
}
load(sdeDatasetList, sourceTable, targetTable, _pWorkppaceMDB);
}
}
确实查到了数据,但游标移动的时候为啥报这个错误?
已邀请:

朱新颖

赞同来自:

ArcMap中使用SelectLayerByAttribute工具查询该表,输入相同查询条件看可否查出?Engine中使用别的查询条件看这条记录可否查出?

要回复问题请先登录注册