https://bugzilla.novell.com/show_bug.cgi?id=686788
https://bugzilla.novell.com/show_bug.cgi?id=686788#c0 Summary: MKMapView with a MKAnnotation crashes when pin is dragged then dropped (MonoTouch 4) Classification: Mono Product: MonoTouch Version: unspecified Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Class Libraries AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16 MKMapView with a MKAnnotation crashes when pin is dragged then dropped. Crash results in an exception being thrown. Failed to find selector _original_setCoordinate: on Saambaa.iPhone.Controllers.Posting.Where.NewLocationController+NewLocationAnnotation at MonoTouch.ObjCRuntime.Runtime.GetMethod (IntPtr klass, IntPtr selptr) [0x0001c] in /Users/plasma/Source/iphone/monotouch/ObjCRuntime/Runtime.cs:111 at (wrapper native-to-managed) MonoTouch.ObjCRuntime.Runtime:GetMethod (intptr,intptr) at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:26 at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x00000] in /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:31 at Saambaa.iPhone.Application.Main (System.String[] args) [0x00000] in /Users/Andrew/Projects/saambaa-iphone/Saambaa.iPhone/Main.cs:20 Reproducible: Always Steps to Reproduce: 1. Add an MKMapView onto a ViewController 2. Add a MKAnnotation with a corresponding MKAnnotationView of type MKPinAnnotationView set to draggable. 3. Run the app, drag and drop the pin in a different location. 4. See exception report as described in the details. Actual Results: Exception is thrown as described in the details. Expected Results: Coordinate should be set on the annotation object. In order to work around this issue, I had to manually bind (Export) the setCoordinate method with the following code in my class that inherits from MKAnnotation. private CLLocationCoordinate2D _coord; [Export("_original_setCoordinate:")] public void SetCoordinate(CLLocationCoordinate2D coord) { _coord = coord; } Looks like this binding is missing in MonoTouch 4. Overriding the Coordinate property did not fix the problem. The following did not work. Neither did using the non-shorthand version of overriding the property. public override CLLocationCoordinate2D Coordinate { get; set; } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
