[Mono-bugs] [Bug 49986][Wis] Changed - Activator.CreateInstance fails when called by generated types
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 23 Oct 2003 03:39:16 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by orphennui@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=49986
--- shadow/49986 2003-10-22 06:53:41.000000000 -0400
+++ shadow/49986.tmp.20472 2003-10-23 03:39:16.000000000 -0400
@@ -106,6 +106,45 @@
BlogInfo is defined in a dynamically loaded module, so maybe this is
the confusion?
------- Additional Comments From vargaz@freemail.hu 2003-10-22 06:53 -------
Although I get a different stack trace, I checked in a fix for this.
Could you retry with latest CVS ?
+
+------- Additional Comments From orphennui@yahoo.com 2003-10-23 03:39 -------
+Nope, still getting the same trace.
+
+Also, after removing my modifications to the xmlrpc lib to pass all
+possible BindingFlags, I get:
+
+
+Unhandled Exception: System.NullReferenceException: A null value was
+found where an object instance was required
+in (unmanaged) /lib/i686/libc.so.6 [0x420748d0]
+in (unmanaged) /lib/i686/libc.so.6(malloc+0xa1) [0x42073d81]
+in (unmanaged) /usr/lib/libglib-2.0.so.0(g_malloc+0x2e) [0x401992ba]
+in (unmanaged) /usr/lib/libglib-2.0.so.0(g_utf8_to_utf16+0x11e)
+[0x401ae99e]
+in (unmanaged) /usr/lib/libmono.so.0(mono_string_new+0x3f) [0x40087c33]
+in (unmanaged) /usr/lib/libmono.so.0(mono_param_get_objects+0x167)
+[0x400811b3]
+in (unmanaged) /usr/lib/libmono.so.0 [0x4008b152]
+in [0x00006] (at
+/gnome/head/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:181)
+System.Reflection.MonoCMethod:GetParameters ()
+in [0x0001d] (at
+/gnome/head/mono/mcs/class/corlib/System.Reflection/Binder.cs:243)
+.Default:SelectMethod
+(System.Reflection.BindingFlags,System.Reflection.MethodBase[],System.Type[],System.Reflection.ParameterModifier[])
+in [0x000f3] (at
+/gnome/head/mono/mcs/class/corlib/System/MonoType.cs:95)
+System.MonoType:GetConstructorImpl
+(System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[])
+in [0x00007] (at /gnome/head/mono/mcs/class/corlib/System/Type.cs:786)
+System.Type:GetConstructor (System.Type[])
+in [0x0005c] (at
+/gnome/head/mono/mcs/class/corlib/System/Activator.cs:157)
+System.Activator:CreateInstance (System.Type,object[],object[])
+in [0x00008] (at
+/gnome/head/mono/mcs/class/corlib/System/Activator.cs:137)
+System.Activator:CreateInstance (System.Type,object[])
+... (same as above)