[Mono-bugs] [Bug 26483][Wis] New - Rectangular array allocation error

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
19 Jun 2002 16:14:16 -0000


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 chris.jones@aspentech.com.

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

--- shadow/26483	Wed Jun 19 12:14:16 2002
+++ shadow/26483.tmp.14557	Wed Jun 19 12:14:16 2002
@@ -0,0 +1,75 @@
+Bug#: 26483
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: Windows XP Professional
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: chris.jones@aspentech.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Rectangular array allocation error
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+0. Allocating a two dimensional double array does not work.
+
+Steps to reproduce the problem:
+using System;
+
+namespace SimpleTester
+{
+	/// <summary>
+	/// Summary description for Class1.
+	/// </summary>
+	class Tester
+	{
+		public int numRows;
+		public int numColumns;
+
+		public double[,] array;
+		/// <summary>
+		/// The main entry point for the application.
+		/// </summary>
+		[STAThread]
+		static void Main(string[] args)
+		{
+			
+			Tester tester1 = new Tester();
+			tester1.run();
+			
+		}
+		public void run()
+		{
+			numRows = 1000;
+			numColumns = 1000;
+			Console.WriteLine("Allocating");
+			array = new double[numRows,numColumns];
+			Console.WriteLine("done");	
+		}
+	}
+}
+
+mcs test.cs
+mono test.c 
+
+Actual Results:
+(process: 3888): ** ERROR **: file loader.c line 392 (mono_get_method): 
+assertion failed: (table == MONO_TABLE_MEMBERREF) aborting...
+
+Expected Results:
+
+Array allocation
+
+
+How often does this happen? 
+
+Anytime my code tries to allocate a two dimensional rectangular array.
+Additional Information: