<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Deadlock when un-docking in DevExpress in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/332639#M3911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using DevExpress DockManager. When I undock a window containing a MapView, my application deadlocks. The attached image shows the deadlocked threads. The reason for the deadlock is because on the Main Thread, HostedSurfaceElement.CreateHostedElementOnWorkerThread starts a thread to call&amp;nbsp;&lt;SPAN&gt;HostedSurfaceElement.SurfaceBackgroundUiWorker and then calls&amp;nbsp;this._backgroundUiCreatedEvent.WaitOne() to wait for the SurfaceBackgroundUiWorker method to complete. However, the method sets the RootVisual which ultimately causes ResourceDictionary.GetValue to be called, causing the deadlock.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2019 20:04:11 GMT</pubDate>
    <dc:creator>JohnDeClouet</dc:creator>
    <dc:date>2019-12-19T20:04:11Z</dc:date>
    <item>
      <title>Deadlock when un-docking in DevExpress</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/332639#M3911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using DevExpress DockManager. When I undock a window containing a MapView, my application deadlocks. The attached image shows the deadlocked threads. The reason for the deadlock is because on the Main Thread, HostedSurfaceElement.CreateHostedElementOnWorkerThread starts a thread to call&amp;nbsp;&lt;SPAN&gt;HostedSurfaceElement.SurfaceBackgroundUiWorker and then calls&amp;nbsp;this._backgroundUiCreatedEvent.WaitOne() to wait for the SurfaceBackgroundUiWorker method to complete. However, the method sets the RootVisual which ultimately causes ResourceDictionary.GetValue to be called, causing the deadlock.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 20:04:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/332639#M3911</guid>
      <dc:creator>JohnDeClouet</dc:creator>
      <dc:date>2019-12-19T20:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when un-docking in DevExpress</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/332640#M3912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any chance you could share a simple application that reproduces the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround you could try and enable a legacy-mode that disables the secondary UI thread (just note it could potentially have a small performance impact) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #24292e; background-color: #ffffff;"&gt;AppContext&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;.S&lt;/SPAN&gt;&lt;SPAN class="" style="color: #6f42c1; background-color: #ffffff;"&gt;etSwitch&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #032f62; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #032f62;"&gt;"&lt;/SPAN&gt;Switch.Esri.ArcGISRuntime.DisableSecondaryUIThread&lt;SPAN class="" style="color: #032f62;"&gt;", true);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #032f62; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #032f62;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #032f62; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #032f62;"&gt;Note: You'll need to use v100.7 for this switch to work (if you can't move to 100.7, at least just try it briefly just to confirm whether this is the&amp;nbsp;addresses the issue, so it gives us something more to go on wrt trouble-shooting). Also&amp;nbsp;this switch might or might not continue to have an effect in future releases, so providing a reproducer sample would be helpful so we can try and address any issue there might be here.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 00:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/332640#M3912</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2019-12-20T00:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when un-docking in DevExpress</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/332641#M3913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I am unable to reproduce this issue outside of my application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is resolved after upgrading to v100.7 and adding the&amp;nbsp;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #24292e; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;AppContext&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #24292e; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;.S&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #6f42c1; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;etSwitch&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #24292e; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #032f62; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;&lt;SPAN style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #032f62; font-family: inherit; font-size: 100%; font-style: inherit; font-weight: inherit; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;"&lt;/SPAN&gt;Switch.Esri.ArcGISRuntime.DisableSecondaryUIThread&lt;SPAN style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #032f62; font-family: inherit; font-size: 100%; font-style: inherit; font-weight: inherit; outline-color: invert; outline-style: none; outline-width: 0px; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;", true);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;On a side note, we often observe issues related to unobserved Task exceptions. We stopped using some async calls due to this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;We will make an effort to provide more details to you related to these issues in the future.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Until those issues are resolved, we hope that the switch will retain its effect.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 22:54:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/332641#M3913</guid>
      <dc:creator>JohnDeClouet</dc:creator>
      <dc:date>2020-03-06T22:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when un-docking in DevExpress</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/1091260#M10370</link>
      <description>&lt;P&gt;I would love to see an example of using DevExpress Reporting with the .NET SDK. I am beginning to explore this as a reporting option.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 15:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/1091260#M10370</guid>
      <dc:creator>ScottLehto3</dc:creator>
      <dc:date>2021-08-23T15:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when un-docking in DevExpress</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/1091262#M10371</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Are there examples of using Devex with the .NET SDK? I would love to see an example ad I am researching this now and coming up short.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 15:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/deadlock-when-un-docking-in-devexpress/m-p/1091262#M10371</guid>
      <dc:creator>ScottLehto3</dc:creator>
      <dc:date>2021-08-23T15:14:08Z</dc:date>
    </item>
  </channel>
</rss>

