[Mono-bugs] [Bug 75291][Wis] New - Failure to deserialize ImageStream

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jun 17 08:29:46 EDT 2005

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 maze at strahlungsfrei.de.


--- shadow/75291	2005-06-17 08:29:46.000000000 -0400
+++ shadow/75291.tmp.11075	2005-06-17 08:29:46.000000000 -0400
@@ -0,0 +1,67 @@
+Bug#: 75291
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: maze at strahlungsfrei.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Failure to deserialize ImageStream
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+In my WinForms-Application compiled using VS.NET, there is an ImageList
+resource embedded into the executable. When copying to my Linux machine
+with Mono SVN, it fails. See error message below.
+The line that fails is 
+this.imageList1.ImageStream =
+The ResourceManager seems to return null in this case. Strangely, this
+didn't crash on Mono 1.1.7. 1.1.7 had another bug though, see #75067. 
+For the source files, also see #75067. (It's the same application). 
+Steps to reproduce the problem:
+1. Make up a form with an ImageList (in VS.NET). 
+2. Add some images to the ImageList.  
+3. Compile and run it on Mono/Linux. 
+Actual Results:
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x00110> System.Windows.Forms.ImageList:set_ImageStream
+(System.Windows.Forms.ImageListStreamer value)
+in (wrapper remoting-invoke-with-check)
+in <0x003ed> ListViewTest.Form1:InitializeComponent ()
+in <0x00013> ListViewTest.Form1:.ctor ()
+in (wrapper remoting-invoke-with-check) ListViewTest.Form1:.ctor ()
+in <0x0001a> ListViewTest.Form1:Main ()
+Expected Results:
+Form opens and program runs fine.
+How often does this happen? 
+Additional Information:
+The ImageList has to be in the form resource file (Form.resx)!

More information about the mono-bugs mailing list