I have been using ArcGIS Geoprocessor(GP) tool whenever possible even though it is like a black box in my ArcObject development. Most of my operations are involved with data processing, such as dataset projection, format conversion. In order to take the advantage of my multi-core system, I decide to use parallel computing/multithreading in C# since it supports since framework 4.0: http://msdn.microsoft.com/en-us/library/dd460720(v=vs.110).aspx So I basically modified my loop which calls GP tool. But it works for only a few GP operations, most of others failed with error handle. So I want to know how to resolve this issue, is there anyway I can continue to use GP in parallel computing?
closed as off-topic by PolyGeo♦ Jul 24 at 4:35
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – PolyGeo
You can't cross thread boundaries with COM objects, I'm guessing that's your issue. Read this help topic for some strategies to get around this.