[Mono-bugs] [Bug 79182][Cri] Changed - Localizable Forms -> ResourceSet is closed.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 31 15:36:37 EDT 2006

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 dna at informatik.uni-kiel.de.


--- shadow/79182	2006-08-27 07:23:44.000000000 -0400
+++ shadow/79182.tmp.5922	2006-08-31 15:36:37.000000000 -0400
@@ -2,15 +2,15 @@
 Product: Mono: Class Libraries
 Version: unspecified
 OS: GNU/Linux [Other]
 OS Details: Ubuntu 6.06 (dapper)
 Status: NEW   
+Severity: Unknown
 Priority: Critical
-Component: CORLIB
+Component: System
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: dna at informatik.uni-kiel.de               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -57,6 +57,34 @@
 I know this is VS2005 but System.Resources.ResourceSet is a .NET 1.1 class.
 ------- Additional Comments From dna at informatik.uni-kiel.de  2006-08-27 07:23 -------
 Created an attachment (id=17525)
 Example VS.NET project as zip file
+------- Additional Comments From dna at informatik.uni-kiel.de  2006-08-31 15:36 -------
+I solved down the problem to the ComponentResourceManager.
+It close the ResourceSet. (ResourceSet.Close() is ...Dispose()).
+So the first ApplyResources() works well, but the second raise this error.
+Its because:
+ResourceSet rset = GetResourceSet (culture, true, true);
+GetResourceSet returns a disposed ResourceSet.
+/* if we already have this resource set, return it */
+if(set!=null) {
+	return(set);
+System.ComponentModel.ComponentResourceManager resources = new
+resources.ApplyResources(this.button1, "button1");
+resources.ApplyResources(this.button2, "button2"); <== 2nd call, exception
+So removing of "rset.Close ();" from
+System.Resources/ResourceSet.ApplyResources() solve the problem with
+the "System.InvalidOperationException: ResourceSet is closed." exception.

More information about the mono-bugs mailing list