Re: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available)
Never mind, I think it's a dup of bug #81414: http://bugzilla.ximian.com/show_bug.cgi?id=81414 Can you confirm this, and attach your repro to that bug report if it is ? -Original Message- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: zondag 22 april 2007 8:39 To: 'Steve Bjorg'; 'mono-devel-list@lists.ximian.com' Subject: RE: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available) Steve, Please submit a bug report for this. Gert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Bjorg Sent: zaterdag 21 april 2007 17:15 To: [EMAIL PROTECTED]; mono-devel-list@lists.ximian.com Subject: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available) When attempting to compile the attached code, gmcs fails: $ gmcs test.cs Unhandled Exception: Mono.CSharp.InternalErrorException: test.cs (4,33): Test.ExtensionHandler --- System.ArgumentNullException: Argument cannot be null. Parameter name: con at System.Reflection.Emit.CustomAttributeBuilder.Initialize (System.Reflection.ConstructorInfo con, System.Object[] constructorArgs, System.Reflection.PropertyInfo[] namedProperties, System.Object[] propertyValues, System.Reflection.FieldInfo[] namedFields, System.Object[] fieldValues) [0x0] at System.Reflection.Emit.CustomAttributeBuilder..ctor (System.Reflection.ConstructorInfo con, System.Object[] constructorArgs) [0x0] at Mono.CSharp.ParamsParameter.ApplyAttributes (System.Reflection.Emit.MethodBuilder mb, System.Reflection.Emit.ConstructorBuilder cb, Int32 index) [0x0] at Mono.CSharp.Parameters.ApplyAttributes (System.Reflection.MethodBase builder) [0x0] at Mono.CSharp.Delegate.Define () [0x0] at Mono.CSharp.TypeContainer +MemberCoreArrayList.DefineContainerMembers () [0x0] --- End of inner exception stack trace --- at Mono.CSharp.TypeContainer +MemberCoreArrayList.DefineContainerMembers () [0x0] at Mono.CSharp.TypeContainer.DefineContainerMembers (Mono.CSharp.MemberCoreArrayList mcal) [0x0] at Mono.CSharp.Class.DefineContainerMembers (Mono.CSharp.MemberCoreArrayList list) [0x0] at Mono.CSharp.TypeContainer.DoDefineMembers () [0x0] at Mono.CSharp.Class.DoDefineMembers () [0x0] at Mono.CSharp.TypeContainer.DefineMembers () [0x0] at Mono.CSharp.RootContext.PopulateTypes () [0x0] at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x0] at Mono.CSharp.Driver.Main (System.String[] args) [0x0] This is the code: public class Test { public static void Main(string[] argS) { } private delegate object ExtensionHandler(params object[] args); } Removing params from the delegate declaration avoids the compiler error exception. - Steve -- Steve G. Bjorg http://www.mindtouch.com http://www.opengarden.org On Apr 20, 2007, at 9:26 PM, Wade Berrier wrote: Hi, Mono 1.2.4 preview sources, packages, and installers are available at: http://mono.ximian.com/monobuild/preview/download-preview/ The beginnings of the release notes for 1.2.4 are available at: http://go-mono.com/archive/1.2.4/ If no critical bugs are found after the preview period, these same downloads will be posted on mono-project.com for general consumption. If there are critical bugs found, only those packages/sources will be updated before publishing to mono-project.com. Since this release hasn't been pushed to our main download server, some sources may be retagged if critical bugs are found. Those tags are not final until we publish to mono-project.com. Wade ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available)
I added the info to the bug report. The repro steps are super simple so hopefully someone will be able to track this down quickly. Also, this issue is a regression in 1.2.4 as this code used to compile before. - Steve -- Steve G. Bjorg http://www.mindtouch.com http://www.opengarden.org On Apr 21, 2007, at 11:48 PM, Gert Driesen wrote: Never mind, I think it's a dup of bug #81414: http://bugzilla.ximian.com/show_bug.cgi?id=81414 Can you confirm this, and attach your repro to that bug report if it is ? -Original Message- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: zondag 22 april 2007 8:39 To: 'Steve Bjorg'; 'mono-devel-list@lists.ximian.com' Subject: RE: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available) Steve, Please submit a bug report for this. Gert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Bjorg Sent: zaterdag 21 april 2007 17:15 To: [EMAIL PROTECTED]; mono-devel-list@lists.ximian.com Subject: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available) When attempting to compile the attached code, gmcs fails: $ gmcs test.cs Unhandled Exception: Mono.CSharp.InternalErrorException: test.cs (4,33): Test.ExtensionHandler --- System.ArgumentNullException: Argument cannot be null. Parameter name: con at System.Reflection.Emit.CustomAttributeBuilder.Initialize (System.Reflection.ConstructorInfo con, System.Object[] constructorArgs, System.Reflection.PropertyInfo[] namedProperties, System.Object[] propertyValues, System.Reflection.FieldInfo[] namedFields, System.Object[] fieldValues) [0x0] at System.Reflection.Emit.CustomAttributeBuilder..ctor (System.Reflection.ConstructorInfo con, System.Object[] constructorArgs) [0x0] at Mono.CSharp.ParamsParameter.ApplyAttributes (System.Reflection.Emit.MethodBuilder mb, System.Reflection.Emit.ConstructorBuilder cb, Int32 index) [0x0] at Mono.CSharp.Parameters.ApplyAttributes (System.Reflection.MethodBase builder) [0x0] at Mono.CSharp.Delegate.Define () [0x0] at Mono.CSharp.TypeContainer +MemberCoreArrayList.DefineContainerMembers () [0x0] --- End of inner exception stack trace --- at Mono.CSharp.TypeContainer +MemberCoreArrayList.DefineContainerMembers () [0x0] at Mono.CSharp.TypeContainer.DefineContainerMembers (Mono.CSharp.MemberCoreArrayList mcal) [0x0] at Mono.CSharp.Class.DefineContainerMembers (Mono.CSharp.MemberCoreArrayList list) [0x0] at Mono.CSharp.TypeContainer.DoDefineMembers () [0x0] at Mono.CSharp.Class.DoDefineMembers () [0x0] at Mono.CSharp.TypeContainer.DefineMembers () [0x0] at Mono.CSharp.RootContext.PopulateTypes () [0x0] at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x0] at Mono.CSharp.Driver.Main (System.String[] args) [0x0] This is the code: public class Test { public static void Main(string[] argS) { } private delegate object ExtensionHandler(params object[] args); } Removing params from the delegate declaration avoids the compiler error exception. - Steve -- Steve G. Bjorg http://www.mindtouch.com http://www.opengarden.org On Apr 20, 2007, at 9:26 PM, Wade Berrier wrote: Hi, Mono 1.2.4 preview sources, packages, and installers are available at: http://mono.ximian.com/monobuild/preview/download-preview/ The beginnings of the release notes for 1.2.4 are available at: http://go-mono.com/archive/1.2.4/ If no critical bugs are found after the preview period, these same downloads will be posted on mono-project.com for general consumption. If there are critical bugs found, only those packages/sources will be updated before publishing to mono-project.com. Since this release hasn't been pushed to our main download server, some sources may be retagged if critical bugs are found. Those tags are not final until we publish to mono-project.com. Wade ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Call for testing: Mono 1.2.4 Preview Available
There appears to be a scrolling/invalidate issue (MWF) on the 2.0 profile (only). I'll submit a bug report for it later today. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wade Berrier Sent: zaterdag 21 april 2007 6:27 To: [EMAIL PROTECTED]; mono-devel-list@lists.ximian.com Subject: [Mono-dev] Call for testing: Mono 1.2.4 Preview Available Hi, Mono 1.2.4 preview sources, packages, and installers are available at: http://mono.ximian.com/monobuild/preview/download-preview/ The beginnings of the release notes for 1.2.4 are available at: http://go-mono.com/archive/1.2.4/ If no critical bugs are found after the preview period, these same downloads will be posted on mono-project.com for general consumption. If there are critical bugs found, only those packages/sources will be updated before publishing to mono-project.com. Since this release hasn't been pushed to our main download server, some sources may be retagged if critical bugs are found. Those tags are not final until we publish to mono-project.com. Wade ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] System.Collections.Specialized.NameValueCollection patch
Please review updated patch - fixed 'CopyTo' method - in negative flow will catch ArrayTypeMismatchException and will re-throw InvalidCastException (under NET_2_0 directive) Eyal Alaluf wrote: Hi, Ilya. The fix in the CopyTo is incoreect. It disallows copying to object[] or IConvertible[] etc. Eyal. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ilya Kharmatsky Sent: 17 April 2007 12:29 To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] System.Collections.Specialized.NameValueCollection patch Hi, Please approve attached patch which fix proper exception handling in CopyTo method and constructors which get another instance of NameValueCollection. The patch contains also the respective test cases. Ilya. Index: Test/System.Collections.Specialized/NameValueCollectionTest.cs === --- Test/System.Collections.Specialized/NameValueCollectionTest.cs (revision 75811) +++ Test/System.Collections.Specialized/NameValueCollectionTest.cs (working copy) @@ -292,6 +292,21 @@ NameValueCollection c = new NameValueCollection (); c.CopyTo (a, 0); } + + [Test] +#if NET_2_0 + [ExpectedException (typeof (InvalidCastException))] +#else + [ExpectedException (typeof (ArrayTypeMismatchException))] +#endif + public void CopyTo_WrongTypeArray () + { + Array a = Array.CreateInstance (typeof (DateTime), 3); + NameValueCollection c = new NameValueCollection (); + for (int i = 0; i 3; i++) + c.Add(i.ToString(), i.ToString()); + c.CopyTo(a, 0); + } [Test] public void Remove () @@ -323,8 +338,30 @@ AssertEquals (Remove-3-Count, 0, c.Count); } } + [Test] #if NET_2_0 + [ExpectedException (typeof (ArgumentNullException))] +#else + [ExpectedException (typeof (NullReferenceException))] +#endif + public void Constructor_Null_NVC () + { + NameValueCollection nvc = new NameValueCollection((NameValueCollection)null); + } + [Test] +#if NET_2_0 + [ExpectedException (typeof (ArgumentNullException))] +#else + [ExpectedException (typeof (NullReferenceException))] +#endif + public void Constructor_Capacity_Null_NVC () + { + NameValueCollection nvc = new NameValueCollection(10, (NameValueCollection)null); + } + +#if NET_2_0 + [Test] public void Constructor_IEqualityComparer () { NameValueCollection coll = new NameValueCollection (new EqualityComparer ()); Index: System.Collections.Specialized/NameValueCollection.cs === --- System.Collections.Specialized/NameValueCollection.cs (revision 75811) +++ System.Collections.Specialized/NameValueCollection.cs (working copy) @@ -64,10 +64,15 @@ /// TODO: uncomment constructor below after it will be possible to compile NameValueCollection and /// NameObjectCollectionBase to the same assembly - public NameValueCollection( NameValueCollection col ) : base(col.HashCodeProvider,col.Comparer) + public NameValueCollection( NameValueCollection col ) : base((col == null) ? null : col.HashCodeProvider, + (col == null) ? null : col.Comparer) { if (col==null) +#if NET_2_0 throw new ArgumentNullException (col); +#else + throw new NullReferenceException(); +#endif Add(col); } @@ -93,7 +98,8 @@ /// NameObjectCollectionBase to the same assembly public NameValueCollection( int capacity, NameValueCollection col ) - : base(capacity, col.HashCodeProvider, col.Comparer) + : base(capacity, (col == null) ? null : col.HashCodeProvider, + (col == null) ? null : col.Comparer) { Add(col); } @@ -263,7 +269,17 @@ if (cachedAll==null) RefreshCachedAll(); +#if NET_2_0 + try { +#endif
[Mono-dev] System.ComponentModel.DefaultValueAttribute Inconsistency
Hello all, I've found some peculiar inconsistency regarding the System.ComponentModel.DefaultValueAttribute between the Microsoft version an Mono's one. For some reason, Micorosft defined the class as public while in Mono it is public sealed therefore, forbidding inheritance Is there a reason or is this some sort of a typo? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] System.ComponentModel.DefaultValueAttribute Inconsistency
Dan Shechter wrote: Hello all, I've found some peculiar inconsistency regarding the System.ComponentModel.DefaultValueAttribute between the Microsoft version an Mono's one. For some reason, Micorosft defined the class as public while in Mono it is public sealed therefore, forbidding inheritance Is there a reason or is this some sort of a typo? The class is actually sealed in MS.NET 1.1 and unsealed in MS.NET 2.0. Mono's implementation is still missing #if NET_2_0 around sealed. Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] [PATCH] Colors for the code-coverage percantage in the monocov-gtk gui
D'oh! forgot to attach the patch. -- Forwarded Message -- Subject: [PATCH] Colors for the code-coverage percantage in the monocov-gtk gui Date: Sunday 22 April 2007 16:49 From: Valentin Sawadski [EMAIL PROTECTED] To: mono-devel-list@lists.ximian.com Hello everybody, here's a small patch, thats highlights the coverage-column of the monocov gtk-gui based on the amount of code that has been covered. Please take a look at it, Kind Regards, Valentin --- Index: gui/gtk/CoverageView.cs === --- gui/gtk/CoverageView.cs (revision 76047) +++ gui/gtk/CoverageView.cs (working copy) @@ -107,7 +107,7 @@ public static string[] DEFAULT_FILTERS = { -PrivateImplementationDetails }; - + TreeView tree; Hashtable namespaces; Hashtable classes; @@ -121,13 +121,14 @@ tree = new TreeView (store); CellRendererText renderer = new CellRendererText (); + CellRendererText coverageRenderer = new CellRendererText (); // LAME: Why is this property a float instead of a double ? renderer.Xalign = 0.5f; tree.AppendColumn (Classes, new CellRendererText (), text, 0); tree.AppendColumn (Lines Hit, renderer, text, 1); tree.AppendColumn (Lines Missed, renderer, text, 2); - tree.AppendColumn (Coverage, renderer, text, 3); + tree.AppendColumn (Coverage, coverageRenderer, text, 3); tree.GetColumn (0).Resizable = true; tree.GetColumn (1).Alignment = 0.0f; @@ -136,6 +137,7 @@ tree.GetColumn (2).Resizable = true; tree.GetColumn (3).Alignment = 0.0f; tree.GetColumn (3).Resizable = true; + tree.GetColumn (3).SetCellDataFunc (coverageRenderer, new TreeCellDataFunc (RenderCoverage)); tree.HeadersVisible = true; @@ -236,6 +238,21 @@ } + private void RenderCoverage (TreeViewColumn column, CellRenderer cell, TreeModel model, TreeIter iter) + { + string text = (string)model.GetValue (iter, 3); + int coverage = Int32.Parse(text.Substring(0, text.Length - 1)); + + if(coverage 99) + (cell as CellRendererText).Foreground = darkgreen; + else if(coverage 74) + (cell as CellRendererText).Foreground = gold; + else if(coverage 49) + (cell as CellRendererText).Foreground = OrangeRed; + else + (cell as CellRendererText).Foreground = FireBrick; + } + void OnDeleteEvent (object sender, DeleteEventArgs e) { if (window_maps [sender] != null){ ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] [PATCH] Colors for the code-coverage percantage in the monocov-gtk gui
Hello everybody, here's a small patch, thats highlights the coverage-column of the monocov gtk-gui based on the amount of code that has been covered. Please take a look at it, Kind Regards, Valentin ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Mono on Windows/x64
Hi, Earlier there were some patches and posts regarding Windows/x64 support on the list. Could someone please let me know the current status of Windows/x64? Kornél ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available)
This was fixed by Marek Safar in r76051. Can this fix be applied to the 1.2.4 trunk as well? Marek? Miguel? -g Steve Bjorg wrote: I added the info to the bug report. The repro steps are super simple so hopefully someone will be able to track this down quickly. Also, this issue is a regression in 1.2.4 as this code used to compile before. - Steve -- Steve G. Bjorg http://www.mindtouch.com http://www.opengarden.org On Apr 21, 2007, at 11:48 PM, Gert Driesen wrote: Never mind, I think it's a dup of bug #81414: http://bugzilla.ximian.com/show_bug.cgi?id=81414 Can you confirm this, and attach your repro to that bug report if it is ? -Original Message- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: zondag 22 april 2007 8:39 To: 'Steve Bjorg'; 'mono-devel-list@lists.ximian.com' Subject: RE: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available) Steve, Please submit a bug report for this. Gert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Bjorg Sent: zaterdag 21 april 2007 17:15 To: [EMAIL PROTECTED]; mono-devel-list@lists.ximian.com Subject: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available) When attempting to compile the attached code, gmcs fails: $ gmcs test.cs Unhandled Exception: Mono.CSharp.InternalErrorException: test.cs (4,33): Test.ExtensionHandler --- System.ArgumentNullException: Argument cannot be null. Parameter name: con at System.Reflection.Emit.CustomAttributeBuilder.Initialize (System.Reflection.ConstructorInfo con, System.Object[] constructorArgs, System.Reflection.PropertyInfo[] namedProperties, System.Object[] propertyValues, System.Reflection.FieldInfo[] namedFields, System.Object[] fieldValues) [0x0] at System.Reflection.Emit.CustomAttributeBuilder..ctor (System.Reflection.ConstructorInfo con, System.Object[] constructorArgs) [0x0] at Mono.CSharp.ParamsParameter.ApplyAttributes (System.Reflection.Emit.MethodBuilder mb, System.Reflection.Emit.ConstructorBuilder cb, Int32 index) [0x0] at Mono.CSharp.Parameters.ApplyAttributes (System.Reflection.MethodBase builder) [0x0] at Mono.CSharp.Delegate.Define () [0x0] at Mono.CSharp.TypeContainer +MemberCoreArrayList.DefineContainerMembers () [0x0] --- End of inner exception stack trace --- at Mono.CSharp.TypeContainer +MemberCoreArrayList.DefineContainerMembers () [0x0] at Mono.CSharp.TypeContainer.DefineContainerMembers (Mono.CSharp.MemberCoreArrayList mcal) [0x0] at Mono.CSharp.Class.DefineContainerMembers (Mono.CSharp.MemberCoreArrayList list) [0x0] at Mono.CSharp.TypeContainer.DoDefineMembers () [0x0] at Mono.CSharp.Class.DoDefineMembers () [0x0] at Mono.CSharp.TypeContainer.DefineMembers () [0x0] at Mono.CSharp.RootContext.PopulateTypes () [0x0] at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x0] at Mono.CSharp.Driver.Main (System.String[] args) [0x0] This is the code: public class Test { public static void Main(string[] argS) { } private delegate object ExtensionHandler(params object[] args); } Removing params from the delegate declaration avoids the compiler error exception. - Steve -- Steve G. Bjorg http://www.mindtouch.com http://www.opengarden.org On Apr 20, 2007, at 9:26 PM, Wade Berrier wrote: Hi, Mono 1.2.4 preview sources, packages, and installers are available at: http://mono.ximian.com/monobuild/preview/download-preview/ The beginnings of the release notes for 1.2.4 are available at: http://go-mono.com/archive/1.2.4/ If no critical bugs are found after the preview period, these same downloads will be posted on mono-project.com for general consumption. If there are critical bugs found, only those packages/sources will be updated before publishing to mono-project.com. Since this release hasn't been pushed to our main download server, some sources may be retagged if critical bugs are found. Those tags are not final until we publish to mono-project.com. Wade ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list