[Mono-bugs] [Bug 58698][Nor] Changed - ResourceManager.GetObject hangs when object isn't found
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 25 May 2004 17:28:32 -0400 (EDT)
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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58698
--- shadow/58698 2004-05-19 10:33:15.000000000 -0400
+++ shadow/58698.tmp.1656 2004-05-25 17:28:32.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 58698
Product: Mono: Class Libraries
Version: unspecified
OS: All
OS Details:
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: FIXED
Severity: Unknown
Priority: Normal
Component: CORLIB
AssignedTo: mono-bugs@ximian.com
ReportedBy: sebastien@ximian.com
QAContact: mono-bugs@ximian.com
@@ -49,6 +49,24 @@
Same sample throw the MissingManifestResourceException under MS runtime.
------- Additional Comments From sebastien@ximian.com 2004-05-19 09:06 -------
Created an attachment (id=7762)
resmgr.cs
+
+------- Additional Comments From gonzalo@ximian.com 2004-05-25 17:28 -------
+This works with current CVS:
+gonzalo@k7:~/go-mono$ mono mgr.exe a b
+Assembly assembly = Assembly.GetExecutingAssembly ();
+ResourceManager rm = new ResourceManager (args [0], assembly);
+string data = (string) rm.GetObject (args [1]);
+
+Unhandled Exception:
+System.Resources.MissingManifestResourceException: Could not find any
+resource appropiate for the specified culture or its parents
+(assembly:mgr)
+in <0x00305> System.Resources.ResourceManager:InternalGetResourceSet
+(System.Globalization.CultureInfo,bool,bool)
+in <0x0008c> System.Resources.ResourceManager:GetObject
+(string,System.Globalization.CultureInfo)
+in <0x00014> System.Resources.ResourceManager:GetObject (string)
+in <0x0009d> RM:Main (string[])