[Mono-bugs] [Bug 77890][Nor] New - ListView crash in DotMSN.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Mar 23 19:40:12 EST 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 miguel at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=77890

--- shadow/77890	2006-03-23 19:40:12.000000000 -0500
+++ shadow/77890.tmp.3129	2006-03-23 19:40:12.000000000 -0500
@@ -0,0 +1,108 @@
+Bug#: 77890
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: mkestner at ximian.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ListView crash in DotMSN.
+
+DotMSN from: http://www.xihsolutions.net/dotmsn/
+
+Is crashing when I run the sample in: dotmsn/example
+
+I log into MSN network using my login/password, and then I get this:
+
+
+Unhandled Exception: System.Reflection.TargetInvocationException: Exception
+has been thrown by the target of an invocation. --->
+System.NullReferenceException: Object reference not set to an instance of
+an object
+in [0x0001d] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:842)
+System.Windows.Forms.ListView:get_SmallIconItemSize ()
+in [0x0004f] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:862)
+System.Windows.Forms.ListView:LayoutIcons (Boolean large_icons, Boolean
+left_aligned, Int32 x_spacing, Int32 y_spacing)
+in [0x00078] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:971)
+System.Windows.Forms.ListView:CalculateListView (ListViewAlignment align)
+in [0x00019] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:606)
+System.Windows.Forms.ListView:Redraw (Boolean recalculate)
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.ListView:Redraw (bool)
+in [0x0005c] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:2278)
+System.Windows.Forms.ListView+ListViewItemCollection:Add
+(System.Windows.Forms.ListViewItem value)
+in <0x00128> DotMSNClient.ClientForm:UpdateContactlist ()
+in <0x00000> <unknown method>
+in (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
+(object,object[])
+in [0x00044] (at
+/home/cvs/mcs/class/corlib/System.Reflection/MonoMethod.cs:131)
+System.Reflection.MonoMethod:Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture)--- End of inner exception stack
+trace ---
+
+in [0x0006b] (at
+/home/cvs/mcs/class/corlib/System.Reflection/MonoMethod.cs:137)
+System.Reflection.MonoMethod:Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture)
+in [0x00006] (at
+/home/cvs/mcs/class/corlib/System.Reflection/MethodBase.cs:87)
+System.Reflection.MethodBase:Invoke (System.Object obj, System.Object[]
+parameters)
+in [0x0005e] (at /home/cvs/mcs/class/corlib/System/Delegate.cs:270)
+System.Delegate:DynamicInvokeImpl (System.Object[] args)
+in [0x0001a] (at /home/cvs/mcs/class/corlib/System/MulticastDelegate.cs:68)
+System.MulticastDelegate:DynamicInvokeImpl (System.Object[] args)
+in [0x00002] (at /home/cvs/mcs/class/corlib/System/Delegate.cs:258)
+System.Delegate:DynamicInvoke (System.Object[] args)
+in [0x00049] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIDriver.cs:303)
+System.Windows.Forms.XplatUIDriverSupport:ExecuteClientMessage (GCHandle
+gchandle)
+in [0x01138] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3188)
+System.Windows.Forms.XplatUIX11:GetMessage (System.Windows.Forms.MSG msg,
+IntPtr handle, Int32 wFilterMin, Int32 wFilterMax)
+in [0x00009] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:478)
+System.Windows.Forms.XplatUI:GetMessage (System.Windows.Forms.MSG msg,
+IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax)
+in [0x00285] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:412)
+System.Windows.Forms.Application:RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context)
+in [0x00007] (at
+/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:292)
+System.Windows.Forms.Application:Run (System.Windows.Forms.Form mainForm)
+in <0x0001f> DotMSNClient.ClientForm:Main ()
+
+
+The line with the problem is trying to access "SmallImageList" which is
+null in this case.
+
+                Size SmallIconItemSize {
+                        get {
+                                int w = text_size.Width + 2 +
+CheckBoxSize.Width + SmallImageList.ImageSize.Width;
+                                int h = Math.Max (text_size.Height,
+Math.Max (CheckBoxSize.Height, SmallImageList.ImageSize.Height));
+                                return new Size (w, h);
+                        }
+                }


More information about the mono-bugs mailing list