Hi,
I have an application with a palette and a diagram. When i drag a shape on the diagram and right after that, double-click the shape on the diagram, i get a System.NullReferenceException. This does not occur if i wait a little (2 seconds) or if i click it before double-clicking it. What can i do to prevent the excpetion? Here's the stacktrace:
" en Crainiate.ERM4.Model.OnMouseMove(MouseEventArgs e)\r\n en System.Windows.Forms.Control.WmMouseMove(Message& m)\r\n en System.Windows.Forms.Control.WndProc(Message& m)\r\n en System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n en System.Windows.Forms.ContainerControl.WndProc(Message& m)\r\n en System.Windows.Forms.UserControl.WndProc(Message& m)\r\n en Crainiate.ERM4.Diagram.WndProc(Message& m)\r\n en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n en System.Windows.Forms.Application.Run(Form mainForm)\r\n en MyProject.Program.Main(String[] args) en MyProject\\Program.cs:línea 52"