[Mono-bugs] [Bug 537248] MissingMethodException when trying to instantiate class using the generic T()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 7 16:34:39 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=537248

User jpryor at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537248#c1


Jonathan Pryor <jpryor at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jpryor at novell.com
         Resolution|                            |WONTFIX




--- Comment #1 from Jonathan Pryor <jpryor at novell.com>  2009-09-07 14:34:32 MDT ---
The problem is the linker, as it's removing the default constructor (as it
isn't referenced unless you include the commented-out block in Main.cs).

The fix is to do one of the following:

1. Reference the constructor so that the linker knows that the constructor is
required (i.e. include your commented-out code block).

2. Provide the -nolink parameter to mtouch.  This will disable all linking.

3. Provide the -linksdkonly parameter to mtouch.  This will link only the
MonoTouch SDK assemblies, and not your application's assemblies.

(2) and (3) may have some GUI counterparts in MonoDevelop, though I do not know
what they are.

-- 
Configure bugmail: http://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