<?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 Memory issues in ArcGIS Routing Sample in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-issues-in-arcgis-routing-sample/m-p/407093#M3496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have integrated Routing feature in my app but its allocating too much memory and as a result my application got crash. I have just walk through "ArcGIS Routing Sample" and found the same problem with sample code as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Sample Code: RoutingSampleViewController class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For execute the route task it is written&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.routeTask solveWithParameters:self.routeTaskParams];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Background arcgis execution happened before coming into this delegate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (void)routeTask:(AGSRouteTask *)routeTask operation:(NSOperation *)op didSolveWithResult:(AGSRouteTaskResult *)routeTaskResult&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have observed using xcode instruments suppose memory allocations is 15MB before starting route feature... and as soon as I start route feature, allocation going very fast and it become 40-50MB if i selected long routes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me to resolve this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 09:27:43 GMT</pubDate>
    <dc:creator>TariqMohd</dc:creator>
    <dc:date>2011-09-16T09:27:43Z</dc:date>
    <item>
      <title>Memory issues in ArcGIS Routing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-issues-in-arcgis-routing-sample/m-p/407093#M3496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have integrated Routing feature in my app but its allocating too much memory and as a result my application got crash. I have just walk through "ArcGIS Routing Sample" and found the same problem with sample code as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Sample Code: RoutingSampleViewController class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For execute the route task it is written&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.routeTask solveWithParameters:self.routeTaskParams];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Background arcgis execution happened before coming into this delegate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (void)routeTask:(AGSRouteTask *)routeTask operation:(NSOperation *)op didSolveWithResult:(AGSRouteTaskResult *)routeTaskResult&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have observed using xcode instruments suppose memory allocations is 15MB before starting route feature... and as soon as I start route feature, allocation going very fast and it become 40-50MB if i selected long routes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me to resolve this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 09:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-issues-in-arcgis-routing-sample/m-p/407093#M3496</guid>
      <dc:creator>TariqMohd</dc:creator>
      <dc:date>2011-09-16T09:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Memory issues in ArcGIS Routing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-issues-in-arcgis-routing-sample/m-p/407094#M3497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, Tariq -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A couple of suggestions :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Do you have the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;returnDirections&lt;/SPAN&gt;&lt;SPAN&gt; property on AGSRouteTaskParameters set to YES? If so, you can try setting the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;returnRouteGraphics&lt;/SPAN&gt;&lt;SPAN&gt; property to NO. This is because, you're essentially getting the entire route geometry twice if both these properties are enabled. The only difference is that the entire route is broken into smaller units as part of the directions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) You can try generalizing the route geometry through the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;outputGeometryPrecision &lt;/SPAN&gt;&lt;SPAN&gt;property on AGSRouteTaskParameters. By default, it is set to generalize using a distance of 5 meters, but you can increase this depending on how accurate you want the route geometry to be. The less accurate it is, the lesser vertices it will have and thus the size of the geometry will decrease. You may need to experiment to see what value works best for you without sacrificing too much accuracy and still keeping the size reasonable.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 16:48:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-issues-in-arcgis-routing-sample/m-p/407094#M3497</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2011-09-16T16:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Memory issues in ArcGIS Routing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-issues-in-arcgis-routing-sample/m-p/407095#M3498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As per your suggestion,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;self.routeTaskParams.returnRouteGraphics = YES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.routeTaskParams.returnDirections = YES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I am trying to set value to NO of any of these values then I cant see route lines on Map. And allocations are also happening at the same speed. Can you please update your existing Routing Sample source code ? Because if i try to plot routes between end corners of US Map then allocation is too much... i can see with Instruments. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be very helpful if you can update your existing code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or if you can provide me updated code on &lt;/SPAN&gt;&lt;A href="mailto:tariq2305@gmail.com"&gt;tariq2305@gmail.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tariq&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 05:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-issues-in-arcgis-routing-sample/m-p/407095#M3498</guid>
      <dc:creator>TariqMohd</dc:creator>
      <dc:date>2011-09-19T05:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Memory issues in ArcGIS Routing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-issues-in-arcgis-routing-sample/m-p/407096#M3499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;TEAM i am still waiting for your reply&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 04:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/memory-issues-in-arcgis-routing-sample/m-p/407096#M3499</guid>
      <dc:creator>TariqMohd</dc:creator>
      <dc:date>2011-09-22T04:00:57Z</dc:date>
    </item>
  </channel>
</rss>

