<?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 Re: Access violation when routing with offline map in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616009#M7549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/4061"&gt;Michael Branscomb&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;The issue is no longer reproducible with version 100.6.0 of the SDK.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robrecht&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Sep 2019 09:22:01 GMT</pubDate>
    <dc:creator>RobrechtUlens</dc:creator>
    <dc:date>2019-09-10T09:22:01Z</dc:date>
    <item>
      <title>Access violation when routing with offline map</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616006#M7546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When creating MapPoints to define stops for a route, I was under the impression that these would accept longitude and latitude coordinates. I tried to calculate a route using these coordinates and my application had a hard crash due to an access violation.&lt;/P&gt;&lt;P&gt;I figured out that I could convert from longitude latitude to mappoints using&amp;nbsp;CoordinateFormatter.FromLatitudeLongitude(). This has solved my issue. I guess before it was trying to route between points that were not in the offline map package I was using.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought I would let you know about this hard crash. Attached is a project that reproduces the issue. I am using 100.5.0 of the .NET SDK and I'm using the belgium.mmpk map which I downloaded from&amp;nbsp;&lt;A class="link-bare" href="https://developers.arcgis.com/downloads/streetmap-premium-for-runtime" title="https://developers.arcgis.com/downloads/streetmap-premium-for-runtime"&gt;https://developers.arcgis.com/downloads/streetmap-premium-for-runtime&lt;/A&gt;. I also tried the 100.4.0 .NET SDK and got the same problem.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Robrecht&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 12:45:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616006#M7546</guid>
      <dc:creator>RobrechtUlens</dc:creator>
      <dc:date>2019-07-10T12:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Access violation when routing with offline map</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616007#M7547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the straightforward repro case. I've&amp;nbsp;open an issue in our backlog and we'll investigate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 15:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616007#M7547</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2019-07-10T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Access violation when routing with offline map</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616008#M7548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue requires further investigation to determine the cause of the error and the appropriate resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the interim you can workaround this by specifying the SpatialReference of the&amp;nbsp;Stop geometries you are creating:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`List&amp;lt;MapPoint&amp;gt; coordinates = new List&amp;lt;MapPoint&amp;gt; { new MapPoint(50.9208595, 5.3386841,SpatialReferences.Wgs84), new MapPoint(50.9299484, 5.3944303,SpatialReferences.Wgs84) };`&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These&amp;nbsp;specific coordinates will cause the SolveRouteAsync task to return an exception that you can catch. The&amp;nbsp;exception message indicates that the Stops cannot be located on the network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 05:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616008#M7548</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2019-07-17T05:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access violation when routing with offline map</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616009#M7549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/4061"&gt;Michael Branscomb&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;The issue is no longer reproducible with version 100.6.0 of the SDK.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robrecht&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 09:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616009#M7549</guid>
      <dc:creator>RobrechtUlens</dc:creator>
      <dc:date>2019-09-10T09:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access violation when routing with offline map</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616010#M7550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for confirming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 15:58:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/access-violation-when-routing-with-offline-map/m-p/616010#M7550</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2019-09-10T15:58:08Z</dc:date>
    </item>
  </channel>
</rss>

