https://bugzilla.novell.com/show_bug.cgi?id=684580
https://bugzilla.novell.com/show_bug.cgi?id=684580#c0 Summary: Setting EditText.TextChanged event crash with System.TypeInitializationException Classification: Mono Product: MonoDroid Version: unspecified Platform: Other 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 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 App is crashing when setting event handler to TextView or EditText TextChanged event. >From my observations, this happens when linking is set to anything except none and app is not using shared runtime. Reproducible: Always Steps to Reproduce: 1.Build and run sample. 2.App crashes during start. Actual Results: App crashes. Expected Results: App should not crash. I/MonoDroid( 705): UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for Android.Text.TextWatcherImpleme ntor ---> System.ArgumentException: Couldn't bind to method 'GetAfterTextChanged Handler'. I/MonoDroid( 705): at System.Delegate.GetCandidateMethod (System.Type type, S ystem.Type target, System.String method, BindingFlags bflags, Boolean ignoreCase , Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0 I/MonoDroid( 705): at System.Delegate.CreateDelegate (System.Type type, Syste m.Type target, System.String method, Boolean ignoreCase, Boolean throwOnBindFail ure) [0x00000] in <filename unknown>:0 I/MonoDroid( 705): at System.Delegate.CreateDelegate (System.Type type, Syste m.Type target, System.String method) [0x00000] in <filename unknown>:0 I/MonoDroid( 705): at Android.Runtime.JNIEnv.RegisterJniNatives (IntPtr typeN ame_ptr, Int32 typeName_len, IntPtr jniClass, IntPtr methods_ptr, Int32 methods_ len) [0x00000] in <filename unknown>:0 I/MonoDroid( 705): at (wrapper delegate-invoke) <Module>:invoke_intptr__this_ __intptr_intptr_string_string (intptr,intptr,string,string) I/MonoDroid( 705): at Android.Runtime.JNIEnv.GetMethodID (IntPtr kls, System. String name, System.String signature) [0x00000] in <filename unknown>:0 I/MonoDroid( 705): at Android.Text.TextWatcherImplementor..cctor () [0x00000] in <filename unknown>:0 I/MonoDroid( 705): --- End of inner exception stack trace --- I/MonoDroid( 705): at Android.Widget.TextView.add_TextChanged (System.EventHand ler`1<Android.Text.TextChangedEventArgs>) <0x00023> I/MonoDroid( 705): at TextChanged.Activity1.OnCreate (Android.OS.Bundle) <0x003 eb> -- 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
