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?
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
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP