[Mono-bugs] [Bug 356938] Dynamic Assemblies: GetTypes (): System.OverflowException : Number overflow

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 25 13:35:32 EDT 2008


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

User twiest at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=356938#c8


Thomas Wiest <twiest at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|RESOLVED                                        |VERIFIED




--- Comment #8 from Thomas Wiest <twiest at novell.com>  2008-07-25 11:35:32 MDT ---
I verified that this is fixed in Mono 2.0p1 on SLED 10 sp2 i586.


Output of test case on Mono 1.9.1:
---
The result of adding the inputted values is: 3
---

TEST1:
 Assembly loaded from disk (IL Injection):
Module: test_assembly.dll
m.GetTypes ==  No. Entries: 0
Module: myDynamicModule.dll
m.GetTypes ==  No. Entries: 0

TEST2:
 Assembly in memory (IL Injection):
Module: myDynamicAssembly

Unhandled Exception: System.OverflowException: Number overflow.
  at (wrapper managed-to-native) System.Reflection.Module:InternalGetTypes ()
  at System.Reflection.Module.GetTypes () [0x00000] 
  at mono_bug_createDynamicAssembly.CreateDynamicAssembly.DumpAssemblyInfo
(System.Reflection.Module[] modules) [0x00000] 
  at
mono_bug_createDynamicAssembly.CreateDynamicAssembly.CreateDynamicAssemblyByInjectingIL
() [0x00000] 
  at mono_bug_createDynamicAssembly.Program.Main (System.String[] args)
[0x00000] 


Output of test case on Mono 2.0p1:
---
The result of adding the inputted values is: 3
---

TEST1:
 Assembly loaded from disk (IL Injection):
Module: test_assembly.dll
m.GetTypes ==  No. Entries: 0
Module: myDynamicModule.dll
m.GetTypes ==  No. Entries: 1
        Type: myDynamicModuleType
                Method: testDynamic
                Method: Equals
                Method: GetHashCode
                Method: GetType
                Method: ToString

TEST2:
 Assembly in memory (IL Injection):
Module: myDynamicModule1
m.GetTypes ==  No. Entries: 1
        Type: myDynamicModuleType
                Method: testDynamic
                Method: Equals
                Method: GetHashCode
                Method: GetType
                Method: ToString
Module: RefEmit_OnDiskManifestModule
m.GetTypes ==  No. Entries: 0


-- 
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