[Mono-bugs] [Bug 80565][Nor] Changed - Error using resgen to generate a resource containing an icon

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 31 18:15:09 EST 2007


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 sebastien at ximian.com.

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

--- shadow/80565	2007-01-30 17:35:52.000000000 -0500
+++ shadow/80565.tmp.21267	2007-01-31 18:15:09.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 80565
 Product: Mono: Class Libraries
 Version: 1.2
 OS: unknown
 OS Details: Ubuntu Edgy
-Status: ASSIGNED   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Normal
 Component: Sys.Drawing.
 AssignedTo: sebastien at ximian.com                            
 ReportedBy: frederik.carlier at ugent.be               
 QAContact: mono-bugs at ximian.com
@@ -160,6 +160,27 @@
 
 ------- Additional Comments From sebastien at ximian.com  2007-01-30 17:35 -------
 I knew icon selection to get the image is undocumented, but it's the
 first time I see a difference between 1.1 and 2.0. Anyway this is
 another issue (not related to resgen). Feel free to open a new bug
 report for it (marking it [2.0]).
+
+------- Additional Comments From sebastien at ximian.com  2007-01-31 18:15 -------
+Closing. I get the same results with Mono and MS 2.0 using this sample.
+
+using System;
+using System.Collections;
+using System.Drawing;
+using System.Resources;
+
+class Program {
+	static void Main (string[] args)
+	{
+//		ResXResourceSet res = new ResXResourceSet ("Resources.resx");
+		ResourceSet res = new ResourceSet ("Resources.resources");
+		foreach (DictionaryEntry de in res) {
+			Bitmap b = (Bitmap) res.GetObject ((string)de.Key);
+			Console.WriteLine ("{0}: {1}", de.Key, b.RawFormat);
+		}
+	}
+}
+


More information about the mono-bugs mailing list