AnsweredAssumed Answered

Executing GP Tasks from different thread prevents events from being triggered

Question asked by kuiperfoliage on Feb 9, 2012
Latest reply on May 30, 2013 by kuiperfoliage

I have attached an example program that demonstrates that the GP Task events will only be called when the GP Task (SubmitJobAsync) is being called from the main UI Thread.

If you remove the dispatcher.Invoke(); around the GP SubmitJobAsync executing the events of the new threads will not be executed. I would say this is a bug.

Hope this will help you improve the code.