flspat

customViewForGraphic invalid AGSGraphic object parameter

Discussion created by flspat on Jun 12, 2012
Latest reply on Jun 14, 2012 by jonesra
Hello all -

I've discovered a strange inconsistency with customViewForGraphic in which every so often (about every six or seven calls,) the AGSGraphic parameter's attributes get whacked and using objectForKey: causes a crash with the following description:

*** -[CFString copyWithZone:]: message sent to deallocated instance 0xeda0de0

It always seems to happen when trying to access the one particular key only; i.e. accessing other attributes is successful.  The attributes of all the graphics in this layer are never changed.   The mapView:(AGSMapView *)mapView
didClickAtPoint:(CGPoint)screen method that is called immediately before the customViewForGraphic method gets passed a graphic object that contains the key of the attribute I am accessing, and produces no error when calling objectForKey:.

Thanks -

Outcomes