[Mono-bugs] [Bug 82453][Nor] New - X11DnD NRE Regression

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 16 06:34:22 EDT 2007


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 contact at i-nz.net.

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

--- shadow/82453	2007-08-16 06:34:21.000000000 -0400
+++ shadow/82453.tmp.17286	2007-08-16 06:34:21.000000000 -0400
@@ -0,0 +1,96 @@
+Bug#: 82453
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: contact at i-nz.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: X11DnD NRE Regression
+
+Recent changes in X11 DnD behavior have introduced a regression for me. I
+get a NRE like the one below. The NRE is exposed by this patch
+http://anonsvn.mono-project.com/viewcvs/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs?rev=78267&r1=78073&r2=78267
+, but I don't think it's the root for the problem. If I revert it DnD
+happens even on click of the control. I believe that extra WM_MOUSEMOVEs
+are being sent without a MOUSEDOWN before them, but that's for you to
+verify as I am not familiar with the code.
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+  at System.Windows.Forms.X11Dnd.QueryContinue (Boolean escape, DragAction
+action) [0x0001a] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs:632 
+  at System.Windows.Forms.X11Dnd.HandleButtonUpMsg () [0x00049] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs:491 
+  at System.Windows.Forms.X11Dnd.StartDrag (IntPtr handle, System.Object
+data, DragDropEffects allowed_effects) [0x00261] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs:442 
+  at System.Windows.Forms.XplatUIX11.StartDrag (IntPtr handle,
+System.Object data, DragDropEffects allowed_effects) [0x0002f] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:4884
+
+  at System.Windows.Forms.XplatUI.StartDrag (IntPtr handle, System.Object
+data, DragDropEffects allowedEffects) [0x00000] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:1073 
+  at System.Windows.Forms.Control.DoDragDrop (System.Object data,
+DragDropEffects allowedEffects) [0x0000b] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3589 
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Control:DoDragDrop
+(object,System.Windows.Forms.DragDropEffects)
+  at Mono.Design.UISelectionService.DragBegin () [0x00019] in
+/root/projects/Mono.Design/trunk/Mono.Design/System.Design/System.Windows.Forms.Design/UISelectionService.cs:140
+
+  at Mono.Design.ControlDesigner.OnMouseDragBegin (Int32 x, Int32 y)
+[0x00033] in
+/root/projects/Mono.Design/trunk/Mono.Design/System.Design/System.Windows.Forms.Design/ControlDesigner.cs:543
+
+  at Mono.Design.ControlDesigner.OnMouseMove (Int32 x, Int32 y) [0x00016]
+in
+/root/projects/Mono.Design/trunk/Mono.Design/System.Design/System.Windows.Forms.Design/ControlDesigner.cs:462
+
+  at Mono.Design.ControlDesigner.WndProc (System.Windows.Forms.Message& m)
+[0x00532] in
+/root/projects/Mono.Design/trunk/Mono.Design/System.Design/System.Windows.Forms.Design/ControlDesigner.cs:380
+
+  at Mono.Design.ControlDesigner.Mono.Design.IMessageReceiver.WndProc
+(System.Windows.Forms.Message& m) [0x00000] in
+/root/projects/Mono.Design/trunk/Mono.Design/System.Design/System.Windows.Forms.Design/ControlDesigner.cs:211
+
+  at Mono.Design.WndProcRouter.System.Windows.Forms.IWindowTarget.OnMessage
+(System.Windows.Forms.Message& m) [0x0000c] in
+/root/projects/Mono.Design/trunk/Mono.Design/System.Design/System.Windows.Forms.Design/WndProcRouter.cs:98
+
+  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message& m) [0x00000] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:205 
+  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x0006b] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:188
+
+  at System.Windows.Forms.XplatUIX11.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3249
+
+  at System.Windows.Forms.XplatUI.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:551 
+  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context) [0x00379] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:746
+
+  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
+mainForm) [0x00000] in
+/svn/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:533
+
+  at mwf_designer.Program.Main () [0x0000b] in
+/root/projects/Mono.Design/trunk/mwf-designer/src/Program.cs:17


More information about the mono-bugs mailing list