AnsweredAssumed Answered

HRESULT ERROR

Question asked by elhaouasshicham_medtrucks on May 31, 2016
Latest reply on Jun 20, 2016 by Hornbydd

hello

i am getting a serious problem with executing geoprocessing tools.

any time i compile the code it send me (An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in ESRI.ArcGIS.Geoprocessor.dll) with the error code number -2147467259.

i am working with arcengine 10.3.1 on vb.net

 

here is an exemple of code:

 

Imports ESRI.ArcGIS.AnalysisTools

Public Class Form2

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim gp As ESRI.ArcGIS.Geoprocessor.Geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor()

        Dim nearTool As Near = New Near()

        nearTool.in_features = "C:\bd\New_Shapefile.shp"

        nearTool.near_features = "C:\New_Shapefile(2).shp"

        nearTool.out_feature_class = "C:\bb.dbf"

        gp.Execute(nearTool, Nothing)

    End Sub

End Class

 

Outcomes