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)时,调试自动退出。没有提示任何报错。请问这是什么问题?
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)时,调试自动退出。没有提示任何报错。请问这是什么问题?
...全文
相关推荐
gh0st3.6 win7x64 vs2013可编译运行
gh0st3.6工具源码 win7下 x64环境 vs2013编译通过 可调试运行
librdkafka win7 64位 vs2015编译Release版本
在win7使用vs2015编译kafka开发版本运行库。包含静态库与动态库。以及对应的完整PDB文件
win7使用win8vs2012mfc运行库
win7使用win8vs2012mfc运行库
Win7_X64+VS2005+WinCE开发环境搭建
1.Win7_X64+VS2005+WinCE5.0开发环境搭建; 2.如有问题,联系chanior2005@gmail.com
win7上vs2003
win7 上安装vs2003不能打开就项目问题



