Yep: https://bugzilla.xamarin.com/show_bug.cgi?id=8313
If I remove linking then it works. JavaCast seems to get around it but there are a lot of places I need to put that. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jonathan Pryor Sent: Friday, November 09, 2012 10:45 AM To: Discussions related to Mono for Android Subject: Re: [mono-android] InvalidCastException in release mode On Nov 8, 2012, at 3:48 PM, Jeremy A. Kolb - ARA/NED <[email protected]> wrote: > I'm seeing this exception in release mode only. I have a fragment that > implements LoaderManager.ILoaderCallbacks: ... > In release mode the cast to ICursor fails even though it is a CursorWrapper. > I'm not sure why it happens in release but not debug. That is very odd; sounds like it could be a linker bug. Would it be possible for you to file a bug about this? As a workaround, does `data.JavaCast<ICursor>()` work instead of `(ICursor)data`? Thanks, - Jon _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
