您的位置:首页 > 其它

调试器无法继续运行该进程 不支持操作

2009-05-08 08:12 162 查看
昨天在调试程序的时候,跟踪不了,报以下错误:

调试器无法继续运行该进程 不支持操作!!!!!

经过排查,原来是代码里面出现了死循环。

DataTable mBllTableSchema;

protected DataTable BllTableSchema

{

get

{

if (this.mBllTableSchema == null)

{

mBllTableSchema = this.DBTableSchema;

bool bExist;

foreach (System.Reflection.PropertyInfo proItem in this.BllType.GetProperties())

{

bExist = false;

foreach (DataColumn column in
BllTableSchema.Columns)

{

if (proItem.Name.ToLower() == column.ColumnName.ToLower())

{

bExist = true; break; // TODO: might not be correct. Was : Exit For

}

}

if (!bExist)

{

mBllTableSchema.Columns.Add(proItem.Name, proItem.PropertyType);

}

}

}

return this.mBllTableSchema;

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐