想做一个缓冲区分析的功能,在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,调试,缓冲区分析