Cancelling a Geprocessing task arcobjects .Net

975
1
02-28-2017 10:45 PM
NigelDsouza
Occasional Contributor

I have a form that runs some geo processing tools in a sequence when it displays.

However when i click the close button the form gets disposed but the geo processing tools still execute.

Is there any way of cancelling the task after Execute(process,null) is called o the geoprocessor?

If yes could someone post some code for the same?

0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor

I've never done it so I don't know how complex a task it is but I think you need to set ITrackCancel parameter when you call the Execute method.  You need to research these pages and may be search the internet for sample code?

0 Kudos