当前位置:编程学习 > C#/ASP.NET >>

win7下VS调试问题

想做一个缓冲区分析的功能,在VS10下,调用Arcgis中的Gp方法:
Geoprocessor gp = new Geoprocessor(); //初始化Geoprocessor
gp.OverwriteOutput = true; //允许运算结果覆盖现有文件
ESRI.ArcGIS.AnalysisTools.Buffer pB = new ESRI.ArcGIS.AnalysisTools.Buffer();
pB.in_features = frmB.inFeatures  ;
pB.out_feature_class = frmB.outFeatures;
pB.buffer_distance_or_field = frmB.bufferDistance;
gp.AddOutputsToMap = true;
Exception ex=null;
try 
  {
    gp.Execute(pB, null);                
  }
catch
  {
     MessageBox.Show("分析失败,请再试一次!"+ex.ToString());
  }
当程序运行到gp.Execute(pB,null)时,调试自动退出。没有提示任何报错。请问这是什么问题? C# ,Vs2010,调试,缓冲区分析  --------------------编程问答-------------------- 是不是要return个什么东西呢LZ --------------------编程问答-------------------- 返回一个错误类型? --------------------编程问答-------------------- 打开系统日志,在应用程序组中看具体的错误。
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,