[Mono-bugs] [Bug 75512][Nor] Changed - execution-time problem with initialization of static enum array

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 23 18:29:03 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75512

--- shadow/75512	2005-08-23 15:41:48.000000000 -0400
+++ shadow/75512.tmp.4016	2005-08-23 18:29:03.000000000 -0400
@@ -138,6 +138,16 @@
 ------- Additional Comments From vargaz at gmail.com  2005-08-23 15:41 -------
 Ok, now I can repro this. I was under the impression that this fails
 under mono runtime, but it fails under the MS runtime. Compiling
 the testcase with mcs HEAD, it runs under the mono runtime, but fails
 under the MS runtime.
 
+
+------- Additional Comments From vargaz at gmail.com  2005-08-23 18:29 -------
+The problem seems to be with the metadata we emit. If t3.exe is
+disassembled, then assembled again, the resulting file runs fine.
+
+Interestingly, csc does not generate a static byte array+a call
+to InitializeArray, but it generates code to initialize the array now
+matter how large it is. Maybe we should do the same instead of trying
+to track down the cause of this crazy exception.
+


More information about the mono-bugs mailing list