[Mono-bugs] [Bug 58698][Nor] New - ResourceManager.GetObject hangs when object isn't found
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 19 May 2004 09:05:31 -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 sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58698
--- shadow/58698 2004-05-19 09:05:31.000000000 -0400
+++ shadow/58698.tmp.5931 2004-05-19 09:05:31.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 58698
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sebastien@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ResourceManager.GetObject hangs when object isn't found
+
+Description of Problem:
+ResourceManager.GetObject hangs when object isn't found.
+
+
+Steps to reproduce the problem:
+1. Compile the attached sample *without* attaching/linking any resources
+ mcs resmgr.cs
+2. Execute the compiled executable with "a" and "b" parameters
+ mono resmgr.exe a b
+
+
+Actual Results:
+Assembly assembly = Assembly.GetExecutingAssembly ();
+ResourceManager rm = new ResourceManager (args [0], assembly);
+string data = (string) rm.GetObject (args [1]);
+
+<then it hangs>
+
+Expected Results:
+Assembly assembly = Assembly.GetExecutingAssembly ();
+ResourceManager rm = new ResourceManager (args [0], assembly);
+string data = (string) rm.GetObject (args [1]);
+
+<MissingManifestResourceException>
+
+
+How often does this happen?
+Always
+
+
+Additional Information:
+Same sample throw the MissingManifestResourceException under MS runtime.