Crainiate Community

Support and discussion for users of Crainiate component software products
Welcome to Crainiate Community Sign in | Join | Help
in Search

exception double-clicking a newly added shape

Last post 07-23-2008 11:39 AM by laurian. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-17-2008 11:09 AM

    exception double-clicking a newly added shape

    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"

    • 213.139.4.242
  • 07-23-2008 9:25 AM In reply to

    Re: exception double-clicking a newly added shape

    This issue should be fixed in build 2966.

    http://support.crainiate.net/Community/forums/p/81/119.aspx

     

    • 86.146.159.91
  • 07-23-2008 11:39 AM In reply to

    Re: exception double-clicking a newly added shape

    Thanks, works now!

    • 213.139.4.242
Page 1 of 1 (3 items)