[Mono-bugs] [Bug 366489] ResourceManager.GetObject("SomeBitmap") returns same reference every time

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 3 14:55:40 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=366489

User spouliot at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=366489#c1





--- Comment #1 from Sebastien Pouliot <spouliot at novell.com>  2008-03-03 12:55:40 MST ---
Same thing happens to icons too. Since it returns a different handle each time
(and that ResourceManager probably doesn't know about SD types) I assume Clone
is being called (if the type implements IClonable).

e.g. 

ResourceManager rm = new ResourceManager ("resource",
Assembly.GetExecutingAssembly ());
Console.WriteLine ("Handle 1: {0}", (rm.GetObject ("Icon1") as Icon).Handle);
Console.WriteLine ("Handle 2: {0}", (rm.GetObject ("Icon1") as Icon).Handle);


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list