TransWikia.com

Creating global Geoprocessor object for ArcObjects application?

Geographic Information Systems Asked on April 26, 2021

I have an application that does many operations including some Geoprocessor tasks.

Should I create a single Geoprocessor() object for the lifetime of the application or should I create a new one each time I want to use a Geoprocessor tool?

One Answer

I develop and maintain a tool built in VB .net which makes use of the IGeoProcessor. When my code calls a function that uses it, it creates and destroys within the function. I've seen no particular drop in performance. There may be a small cost in instantiating it but that seems to be trivial when compared to what tools it executes.

As long as its not being created and destroyed say in an inner loop within a function then I think you are OK in creating it and destroying it within a function, well that's what I do.

Answered by Hornbydd on April 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP