[Mono-bugs] [Bug 509421] System.InvalidProgramException: Invalid IL code in extremely simple program

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 3 07:51:51 EDT 2009


User rkvinge at novell.com added comment

Rolf Bjarne Kvinge <rkvinge at novell.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Rolf Bjarne Kvinge <rkvinge at novell.com>  2009-06-03 05:51:49 MDT ---
There are two problems here:

- Your code is wrong, you must add a 'Shared' to Application.vb:7 like this:

    Dim Shared WB as Woerterbuch = New Woerterbuch()

- The compiler should detect this and show an error message instead of
generating an invalid assembly. This has already been reported in #332870.

*** This bug has been marked as a duplicate of bug 332870 ***

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