[Mono-bugs] [Bug 369173] TypeLoad exception and runtime crash when emitting type

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 11 09:46:38 EDT 2008


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

User msafar at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369173#c3





--- Comment #3 from Marek Safar <msafar at novell.com>  2008-03-11 07:46:37 MST ---
The second test should be only

Test 2: test.exe lib2.dll

Expected Output: No error and correctly emitted bla.dll

Actual Output:

lib2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
System.Enum
lib2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null

Unhandled Exception: System.TypeLoadException: Could not load type 'MyEnum'.
  at (wrapper managed-to-native)
System.Reflection.Emit.TypeBuilder:create_runtime_class
(System.Reflection.Emit.TypeBuilder)
  at System.Reflection.Emit.TypeBuilder.CreateType () [0x00000] 
  at C.Emit (System.Type t) [0x00000] 
  at C.Main (System.String[] args) [0x00000] 


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


More information about the mono-bugs mailing list