Next and prev Buttons for routing purpose causes EXC_BAD_ACCESS in my app.

Discussion created by miribsystematics-co-il-esridist Employee on May 11, 2011
Latest reply on May 12, 2011 by njarecha-esristaff
Hi everybody,

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.

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.
It is fairly to reproduce.
I put my project myRouting.zip under ftp://ftp.plm.co.il/mirie/.
(When it opens, don't click the next & prev buttons.)
When it opens, click on the right second button of the bottom Tab Bar (with an arrow icon).
When this view opens, click on the blue button in the right upper side (it has default values already for two addresses).
It finally shows a route. Then click on the nextBtn and see how it blows away....

Sorry again.... I promise that when I'll be able to answer questions in the forum, I will do it with pleasure.

Thanks a lot,