ashestak

Execute Geoprocessing tool in Engine application

Discussion created by ashestak on Jun 11, 2012
Latest reply on Jun 21, 2012 by ashestak
Hi,

I'm trying to execute geoprocessing tool in simple ArcGIS Engine application.
I added a button that executes code above:

CollectEvents collectEvents = new CollectEvents("Cities", "Cities_1");
Geoprocessor geoProc = new Geoprocessor();
geoProc.SetEnviromentValue("workspace", @"c:\temp\california.gdb");
geoProc.Execute(collectEvents, null);

I'm recieving an error on "execute" command: "attempted to read or write protected memory..."

Thanks in advance,
Alex

Outcomes