<?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: Next and prev Buttons for routing purpose causes EXC_BAD_ACCESS in my app. in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/next-and-prev-buttons-for-routing-purpose-causes/m-p/6820#M77</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nimesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see that the crash happens because of the same over-realeasing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm so afraid of memory leak, that I release everything immediately after I use them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Miri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2011 04:28:50 GMT</pubDate>
    <dc:creator>MiriEshel</dc:creator>
    <dc:date>2011-05-12T04:28:50Z</dc:date>
    <item>
      <title>Next and prev Buttons for routing purpose causes EXC_BAD_ACCESS in my app.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/next-and-prev-buttons-for-routing-purpose-causes/m-p/6818#M75</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry I'm flooding the forum with questions. I'm almost at the end of migrating an application from 1.0 to 1.8. I'm alone in this battle so I must consult with you guys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to combine the nextBtn and prevBtn functionalities of the Routing Sample in my code. When I get to the line [self.currentDirectionGraphic = [directions.graphics objectAtIndex:_directionIndex]; I get the nasty EXC_BAD_ACCESS. I tried almost everything and couldn't find the problem. I'm sure one of you can easily find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is fairly to reproduce.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I put my project myRouting.zip under &lt;/SPAN&gt;&lt;A href="ftp://ftp.plm.co.il/mirie/"&gt;ftp://ftp.plm.co.il/mirie/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(When it opens, don't click the next &amp;amp; prev buttons.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When it opens, click on the right second button of the bottom Tab Bar (with an arrow icon).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When this view opens, click on the blue button in the right upper side (it has default values already for two addresses).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It finally shows a route. Then click on the nextBtn and see how it blows away....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry again.... I promise that when I'll be able to answer questions in the forum, I will do it with pleasure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Miri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 13:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/next-and-prev-buttons-for-routing-purpose-causes/m-p/6818#M75</guid>
      <dc:creator>MiriEshel</dc:creator>
      <dc:date>2011-05-11T13:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Next and prev Buttons for routing purpose causes EXC_BAD_ACCESS in my app.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/next-and-prev-buttons-for-routing-purpose-causes/m-p/6819#M76</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The same reason of thread...&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/29753-Running-AGSRouteTask-two-times-in-a-row-causes-an-exception-EXC_BAD_ACCESS"&gt;http://forums.arcgis.com/threads/29753-Running-AGSRouteTask-two-times-in-a-row-causes-an-exception-EXC_BAD_ACCESS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you comment out code lines as following, it'll work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSDirectionGraphic *directionsGraphic = [dirArray objectAtIndex:i];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NSString *directionString = directionsGraphic.text;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//[directionsGraphic release];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//directionsGraphic = nil;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 17:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/next-and-prev-buttons-for-routing-purpose-causes/m-p/6819#M76</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-05-11T17:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Next and prev Buttons for routing purpose causes EXC_BAD_ACCESS in my app.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/next-and-prev-buttons-for-routing-purpose-causes/m-p/6820#M77</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nimesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see that the crash happens because of the same over-realeasing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm so afraid of memory leak, that I release everything immediately after I use them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Miri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 04:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/next-and-prev-buttons-for-routing-purpose-causes/m-p/6820#M77</guid>
      <dc:creator>MiriEshel</dc:creator>
      <dc:date>2011-05-12T04:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Next and prev Buttons for routing purpose causes EXC_BAD_ACCESS in my app.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/next-and-prev-buttons-for-routing-purpose-causes/m-p/6821#M78</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would recommend going through Apple's memory management documentation. I rule of thumb is to release (Release or Autorelease) only objects which you own (objects created with Alloc or New keywords).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 15:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/next-and-prev-buttons-for-routing-purpose-causes/m-p/6821#M78</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-05-12T15:25:00Z</dc:date>
    </item>
  </channel>
</rss>

