I have created a custom SimpleCursorAdapter and have overridden the NewView and BindView methods in order to format some of the text that is displayed in the resulting view. Everything works without issue when using the shared runtime and no linking i.e. running with a debug build. However, when I attempt to run the application without the shared runtime and with linking, the cursor (in the context of the adapter) does not appear to function normally.
If running against Android 2.2, the GetColumnIndex/GetColumnIndexOrThrow methods always return 1 and all resulting Get methods (e.g. GetLong, GetInt, GetString, etc.) fail to return any data. If running against Android 2.3.3, whenever the GetColumnIndex/GetColumnIndexOrThrow methods are called, I receive the following exception: E/mono ( 347): Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object E/mono ( 347): at (wrapper delegate-invoke) <Module>:invoke_int__this___intptr_intptr_intptr_JValue[] (intptr,intptr,intptr,Android.Runtime.JValue[]) E/mono ( 347): at Android.Runtime.JNIEnv.CallIntMethod (IntPtr jobject, IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00000] E/mono ( 347): at Android.Database.ICursorInvoker.GetColumnIndexOrThrow (System.String columnName) [0x00000] Has anyone ever seen this behavior before or have any suggestions? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Strange-Cursor-Behavior-tp4993326p4993326.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid