In my project I uses the Esri.ArcGIS.Runtime toolkit for .NET application development. (WPF)
I am using this toolkit for about 2 years now, and recently encountered some kind of unexplained bug.
while using the MapView.GraphicsOverlay[key].Graphics.Remove(itemToRemove) the program freezes.
In my application the map interaction frequency is about 100Hz. (Add/Remove points to GraphicsOverlay)
This happens randomly , and when debugging I have found that the program gets stuck while executing these lines:
public void Remove(long position)
{
IntPtr errorHandle;
CoreVector.CoreRT_vector_remove(this, position, out errorHandle);
GC.KeepAlive(this); <--
InteropCheckError(errorHandle, true, default(GCHandle));
}
since map updates are executed from the main UI thread, it makes the whole program freeze.
and windows 10 labels the program as unresponsive.
can anyone point me to a solution? has anyone encountered this issue before?
Thanks
I'm having the same issue, would appreciate any help 🙂
Hello! I've been trying to debug this problem, but so far I have not been able to reproduce the freeze. Could you help me narrow down this problem by answering a few questions?