Select to view content in your preferred language

Synchronous HitTest

3242
3
04-04-2016 10:33 AM
KerenMoses1
Deactivated User

Hi,

I am using ArcGIS Runtime for .Net 10.2.7.

I have an application that draws graphics dynamically every few seconds.

Due to application limitations, I have to perform a synchronous hit test.

I tried waiting for the HitTestAsync task, but the application gets stuck, and the task's state is always 'WaitingForActivation'.

Is there any way to perform hit test synchronously?

Thanks,

Keren

0 Kudos
3 Replies
dotMorten_esri
Esri Notable Contributor

How are you "synchronously" waiting for hittest to complete? If you're blocking the async task with a .Wait() call, you WILL hit a deadlock. Synchronous hit testing isn't supported.

0 Kudos
KerenMoses1
Deactivated User

Will it be supported in future versions?

Our application architecture forces us to work synchronously..

0 Kudos
dotMorten_esri
Esri Notable Contributor

No on the contrary async is the design pattern going forward.

Are you sure you can't change your application architecture? Forcing synchronous processing has a lot of downsides, which is why most UI frameworks has moved away from this.

0 Kudos