[Mono-bugs] [Bug 692753] MissingMethodException when trying to instantiate class using the System.ComponentModel.StringConverter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue May 10 02:41:28 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=692753

https://bugzilla.novell.com/show_bug.cgi?id=692753#c1


Jb Evain <jbevain at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jbevain at novell.com
         AssignedTo|gnorton at novell.com          |jbevain at novell.com

--- Comment #1 from Jb Evain <jbevain at novell.com> 2011-05-10 06:41:28 UTC ---
Most likely, this is a linker issue. You can workaround this in two ways:

1) Disable linking.
2) Include in your code static references to the constructors you want to call
through reflection. 

like this:

static bool workaround = false;


main () {
  if (workaround) {
    var _ = new StringConverter ();
  }
}

This will never be executed but will protect the constructors.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list