IGeoProcessorResult2 and ExecuteAsync

440
0
12-14-2011 10:19 AM
thomasenns1
New Contributor
I'm receiving odd behavior when I query my result from an ExecuteAsync on a custom tool.  I get an esriJobFailed status during and after a 'successful' tool is being run.  I say 'successful' because results dockable window says 'Succeeded'.

My ExecuteAsync...

m_result = m_gp.ExecuteAsync(toolName, parameters);

My query via a button...

listView2.Items.Add(new ListViewItem(new string[2] { "Status", Convert.ToString(((IGeoProcessorResult2)m_result).Status) }));

When I run the tool, and click my button multiple times, I get  esriJobWaiting, esriJobWaiting, esriJobFailed, esriJobFailed,esriJobFailed, ...
0 Kudos
0 Replies