Hi,
I'm trying to implement multi-threading in my AO code but it fails, after a long wait, with a RPC_ESERVER Fault error message.
Here's how I'm doing it:
1. Create an ICommand. OnClick calls another method (say Start())
2. Start() intantiates the IApplication/IMxDocument and other AO vars and finally creates a Windows form which has a button (say OK) to being processing.
3. When I click OK button, I start another thread, which has all the ArcObjects related processing. The processing is happening with shared variables and some private variables (private to the method). This thread also updates the progress bar.
With respect to the UI update I understand it should not be happening on the worker thread, but why does the processing take enormous amount of time even for a single selection and then eventually fail.
Any ideas?