customViewForGraphic invalid AGSGraphic object parameter

581
1
06-12-2012 04:11 PM
FredSpataro
Occasional Contributor III
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 -
0 Kudos
1 Reply
RickJones
Occasional Contributor II
The property may be being released before it's used.

Is it defined as strong? (retain in the old pre-ARC way)
0 Kudos