Oomph / MacMapKit

MapKit Framework for the Mac
BSD 3-Clause "New" or "Revised" License
256 stars 43 forks source link

Some ARC trouble I guess #16

Closed LucasDeVil closed 12 years ago

LucasDeVil commented 12 years ago

Hi there, sometimes I get the following error combined with an EXC_BAD_INSTRUCTIONS:

"objc[3122]: cannot form weak reference to instance (0x101849790) of class MapViewController"

It is kinda hard to reproduce but seems to be located in the ARC of my project. (Since non-arc should'n support weak references after all.)

MapViewController is registered as the delegate of MKMapView and sometimes this issue happens when I'm manipulating the selected annotations.

-- snip --

Some sample code causing this issue - sometimes. And working fine the other times.

[mapView selectAnnotation:[_managedPoints objectForKey:point] animated:YES];

-- snap--

Do you have any suggestions to get this fixed?

LucasDeVil commented 12 years ago

Seems like the issue was in my implementation code. Sorry for that. :)